// 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 referenceNo description available.
The DXGI_DDI_ARG_SETRESOURCEPRIORITY structure describes parameters for setting the priority level of a resource.
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.
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.