// d3dumddi.h
PFND3DDDI_SETPRIORITY Pfnd3dddiSetpriority;
HRESULT Pfnd3dddiSetpriority(
HANDLE hDevice,
const D3DDDIARG_SETPRIORITY *unnamedParam2
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The SetPriority function sets the eviction-from-memory priority for a managed texture.
hDeviceA handle to the display device (graphics context).
unnamedParam2pData [in]
A pointer to a D3DDDIARG_SETPRIORITY structure that specifies the priority level to set for the managed texture.
SetPriority returns one of the following values:
| Return code | Description |
|---|---|
| S_OK | The priority level is successfully set. |
| E_INVALIDARG | Parameters were validated and determined to be incorrect. |
The Microsoft Direct3D runtime calls SetPriority to set the priority level for a resource. The user-mode display driver should translate the resource handle that is supplied in the hResource member of the D3DDDIARG_SETPRIORITY structure that is pointed to by pData to an allocation handle. After the driver makes this translation, the driver should pass the resulting handle in a call to the pfnSetPriorityCb function.