DXGI_DDI_ARG_SETRESOURCEPRIORITY - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// dxgiddi.h

typedef struct DXGI_DDI_ARG_SETRESOURCEPRIORITY {
  [in] DXGI_DDI_HDEVICE   hDevice;
  [in] DXGI_DDI_HRESOURCE hResource;
  [in] UINT               Priority;
} DXGI_DDI_ARG_SETRESOURCEPRIORITY;
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-dxgiddi-dxgi_ddi_arg_setresourcepriority)

DXGI_DDI_ARG_SETRESOURCEPRIORITY structure

Description

The DXGI_DDI_ARG_SETRESOURCEPRIORITY structure describes parameters for setting the priority level of a resource.

Members

hDevice [in]

A handle to the display device (graphics context) on which the driver sets the eviction-from-memory priority for a resource. The Direct3D runtime passes this handle to the driver in the hDrvDevice member of the D3D10DDIARG_CREATEDEVICE structure when the runtime calls the driver's CreateDevice(D3D10) function to create the display device.

hResource [in]

A handle to the resource to set the priority level for.

Priority [in]

The priority level to set for the resource that the hResource member specifies. A resource's priority level can be set anywhere in the range from 0 through 0xFFFFFFFF.

Remarks

The priority level that a resource is set at determines its eviction order from memory. A resource that is assigned a low priority is evicted before a resource with a high priority. If two resources have the same priority, the resource that was used more recently is kept in memory; the other resource is evicted.

See also

SetResourcePriorityDXGI