Bewerken

Delen via


DXGI_DDI_ARG_SETRESOURCEPRIORITY structure (dxgiddi.h)

The DXGI_DDI_ARG_SETRESOURCEPRIORITY structure describes parameters for setting the priority level of a resource.

Syntax

typedef struct DXGI_DDI_ARG_SETRESOURCEPRIORITY {
  [in] DXGI_DDI_HDEVICE   hDevice;
  [in] DXGI_DDI_HRESOURCE hResource;
  [in] UINT               Priority;
} DXGI_DDI_ARG_SETRESOURCEPRIORITY;

Members

[in] hDevice

A handle to the display device (graphics context) on which the driver sets the eviction-from-memory priority for a resource. The Direct3D runtime passes this handle to the driver in the hDrvDevice member of the D3D10DDIARG_CREATEDEVICE structure when the runtime calls the driver's CreateDevice(D3D10) function to create the display device.

[in] hResource

A handle to the resource to set the priority level for.

[in] Priority

The priority level to set for the resource that the hResource member specifies. A resource's priority level can be set anywhere in the range from 0 through 0xFFFFFFFF.

Remarks

The priority level that a resource is set at determines its eviction order from memory. A resource that is assigned a low priority is evicted before a resource with a high priority. If two resources have the same priority, the resource that was used more recently is kept in memory; the other resource is evicted.

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Header dxgiddi.h (include D3d10umddi.h)

See also

SetResourcePriorityDXGI