// d3dkmddi.h
typedef struct _DXGK_MEMORYRANGE {
UINT64 SegmentOffset;
UINT64 SizeInBytes;
} DXGK_MEMORYRANGE;
View the official Windows Driver Kit DDI referenceNo description available.
A DXGK_MEMORYRANGE structure describes a range of memory.
SegmentOffsetThe offset from the start of the segment in bytes. The value must be aligned to the segment page boundary.
SizeInBytesThe number of bytes in the range. The value must be a multiple of the segment page size.
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.