Blt
Expand Minimize

SetPriority routine

The SetPriority function sets the eviction-from-memory priority for a managed texture.

Syntax


PFND3DDDI_SETPRIORITY SetPriority;

__checkReturn HRESULT APIENTRY SetPriority(
  _In_       HANDLE                hDevice,
  _In_ const D3DDDIARG_SETPRIORITY *pData
)
{ ... }

Parameters

hDevice [in]

A handle to the display device (graphics context).

pData [in]

A pointer to a D3DDDIARG_SETPRIORITY structure that specifies the priority level to set for the managed texture.

Return value

SetPriority returns one of the following values:

Return codeDescription
S_OK

The priority level is successfully set.

E_INVALIDARG

Parameters were validated and determined to be incorrect.

 

Remarks

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.

Requirements

Target platform

Desktop

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3dumddi.h (include D3dumddi.h)

See also

D3DDDIARG_SETPRIORITY
D3DDDI_DEVICEFUNCS
pfnSetPriorityCb

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft