IDXGIAdapter3::SetVideoMemoryReservation method

This method sends the minimum required physical memory for an application, to the OS.

Syntax

HRESULT SetVideoMemoryReservation(
  UINT                      NodeIndex,
  DXGI_MEMORY_SEGMENT_GROUP MemorySegmentGroup,
  UINT64                    Reservation
);

Parameters

NodeIndex

Type: UINT

Specifies the device's physical adapter for which the video memory information is being set. 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 being set. See Multi-Adapter.

MemorySegmentGroup

Type: DXGI_MEMORY_SEGMENT_GROUP

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

Reservation

Type: UINT64

Specifies a UINT64 that sets the minimum required physical memory, in bytes.

Return Value

Type: HRESULT

Returns S_OK if successful; an error code otherwise. For a list of error codes, see DXGI_ERROR.

Remarks

Applications are encouraged to set a video reservation to denote the amount of physical memory they cannot go without. This value helps the OS quickly minimize the impact of large memory pressure situations.

Requirements

   
Target Platform Windows
Header dxgi1_4.h (include DXGI1_3.h)
Library Dxgi.lib
DLL Dxgi.dll

See Also

IDXGIAdapter3