Bewerken

Delen via


PFND3DDDI_SETPRIORITY callback function (d3dumddi.h)

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

Syntax

PFND3DDDI_SETPRIORITY Pfnd3dddiSetpriority;

HRESULT Pfnd3dddiSetpriority(
  HANDLE hDevice,
  const D3DDDIARG_SETPRIORITY *unnamedParam2
)
{...}

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.

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Target Platform Desktop
Header d3dumddi.h (include D3dumddi.h)

See also

D3DDDIARG_SETPRIORITY

D3DDDI_DEVICEFUNCS

pfnSetPriorityCb