// d3dumddi.h
typedef struct _D3DDDIARG_SETPRIORITY {
HANDLE hResource;
UINT Priority;
} D3DDDIARG_SETPRIORITY;
View the official Windows Driver Kit DDI referenceNo description available.
The D3DDDIARG_SETPRIORITY structure describes the priority level to set for a managed texture.
hResourceA handle to the resource that contains the texture.
PriorityThe priority level to set for the texture that is contained in the hResource resource. A texture's priority value can be set anywhere in the range from 0 through 0xFFFFFFFF.
The driver receives only priority notifications for driver-managed textures.
The priority level at which a texture is set determines its eviction order from memory. A texture that is assigned a low priority is evicted before a texture with a high priority. If two textures have the same priority, the texture that was used more recently is kept in memory; the other texture is evicted.