IDXGIResource::SetEvictionPriority Method

Set the priority for evicting the resource from memory.

Syntax

public:
HRESULT SetEvictionPriority(
         UINT EvictionPriority
)  

Parameters

EvictionPriority
Type: UINT 

The priority is one of the following values:

Return value

Type: HRESULT 

Returns one of the following DXGI_ERROR.

Remarks

The eviction priority is a memory-management variable that is used by DXGI for determining how to populate overcommitted memory.

You can set priority levels other than the defined values when appropriate. For example, you can set a resource with a priority level of 0x78000001 to indicate that the resource is slightly above normal.

Requirements

Header: Declared in d3d11_x.h (dxgi.h on other Windows platforms).

Library: Use d3d11_x.lib (dxgi.lib on other Windows platforms).

See also

IDXGIResource

IDXGIResource Members