DXGK_MEMORYRANGE structure (d3dkmddi.h)

A DXGK_MEMORYRANGE structure describes a range of memory.

Syntax

typedef struct _DXGK_MEMORYRANGE {
  UINT64 SegmentOffset;
  UINT64 SizeInBytes;
} DXGK_MEMORYRANGE;

Members

SegmentOffset

The offset from the start of the segment in bytes. The value must be aligned to the segment page boundary.

SizeInBytes

The number of bytes in the range. The value must be a multiple of the segment page size.

Remarks

One way that DXGK_MEMORYRANGE is used is with DxgkDdiQueryAdapterInfo and DXGK_QUERYSEGMENTMEMORYSTATE to query bad GPU memory ranges. The query is done during adapter object initialization. The driver is called only if DXGK_SEGMENTDESCRIPTOR4::NumInvalidMemoryRanges isn't zero for a segment.

Requirements

Requirement Value
Minimum supported client Windows 10
Minimum supported server Windows Server 2016
Header d3dkmddi.h (include D3dkmddi.h)

See also

DXGK_QUERYSEGMENTMEMORYSTATE

DXGK_SEGMENTDESCRIPTOR4

DXGKARG_CREATEMEMORYBASIS

DxgkDdiCreateMemoryBasis

DxgkDdiQueryAdapterInfo