SetResourcePriorityDXGI routine

The SetResourcePriorityDXGI function sets the eviction-from-memory priority for a resource.

Syntax


pfnSetResourcePriority SetResourcePriorityDXGI;

HRESULT __stdcall* SetResourcePriorityDXGI(
  DXGI_DDI_ARG_SETRESOURCEPRIORITY *pPriorityData
)
{ ... }

Parameters

pPriorityData

[in] A pointer to a DXGI_DDI_ARG_SETRESOURCEPRIORITY structure that describes the priority level to set a resource to.

Return value

SetResourcePriorityDXGI returns one of the following values:

Return codeDescription
S_OK

The priority level was successfully set.

D3DDDIERR_DEVICEREMOVED

The driver detected that the graphics adapter was removed. Therefore, the driver did not complete the operation. If the driver never notices the adapter-removal condition, the driver is not required to return this error code.

 

Remarks

The Microsoft Direct3D runtime calls SetResourcePriorityDXGI 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 DXGI_DDI_ARG_SETRESOURCEPRIORITY structure that is pointed to by pPriorityData 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

Version

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

Header

Dxgiddi.h (include D3d10umddi.h)

See also

DXGI_DDI_ARG_SETRESOURCEPRIORITY
pfnSetPriorityCb

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft. All rights reserved.