IDXGIResource::GetEvictionPriority Method

Get the eviction priority.

Syntax

public:
HRESULT GetEvictionPriority(
         UINT *pEvictionPriority
)  

Parameters

pEvictionPriority
Type: UINT *

[out]

A pointer to the eviction priority, which determines when a resource can be evicted from memory.

The following defined values are possible.

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 to determine how to manage overcommitted memory.

Priority levels other than the defined values are used when appropriate. For example, a resource with a priority level of 0x78000001 indicates 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