PFND3DDDI_SETPRIORITY - NtDoc

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

PFND3DDDI_SETPRIORITY Pfnd3dddiSetpriority;

HRESULT Pfnd3dddiSetpriority(
  HANDLE hDevice,
  const D3DDDIARG_SETPRIORITY *unnamedParam2
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-d3dumddi-pfnd3dddi_setpriority)

PFND3DDDI_SETPRIORITY callback function

Description

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

Parameters

hDevice

A handle to the display device (graphics context).

unnamedParam2

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 code Description
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.

See also

D3DDDIARG_SETPRIORITY

D3DDDI_DEVICEFUNCS

pfnSetPriorityCb