ID3D12DeviceDownlevel::QueryVideoMemoryInfo method

Provides memory statistics on Windows 7. This method is equivalent to IDXGIAdapter3::QueryVideoMemoryInfo, which is not available on Windows 7.

Syntax

HRESULT QueryVideoMemoryInfo( 
    UINT NodeIndex,
    DXGI_MEMORY_SEGMENT_GROUP MemorySegmentGroup,
    DXGI_QUERY_VIDEO_MEMORY_INFO *pVideoMemoryInfo
);

Parameters

NodeIndex

Type: UINT

Specifies the device's physical adapter for which the video memory information is queried. For single-GPU operation, set this to zero. If there are multiple GPU nodes, set this to the index of the node (the device's physical adapter) for which the video memory information is queried. See Multi-adapter systems.

MemorySegmentGroup

Type: DXGI_MEMORY_SEGMENT_GROUP

Specifies a DXGI_MEMORY_SEGMENT_GROUP that identifies the group as local or non-local.

pVideoMemoryInfo

Type: DXGI_QUERY_VIDEO_MEMORY_INFO*

Fills in a DXGI_QUERY_VIDEO_MEMORY_INFO structure with the current values.

Return value

Returns S_OK on success, or else a failing HRESULT.

Requirements

Requirement Value
Header d3d12downlevel.h and dxgi1_4.h
DLL D3D12.dll (Windows 7 only)

See also