Set the priority for evicting the resource from memory.
public:
HRESULT SetEvictionPriority(
UINT EvictionPriority
)
EvictionPriority
Type: UINTÂ
The priority is one of the following values:
Type: HRESULTÂ
Returns one of the following DXGI_ERROR.
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.
Header: Declared in d3d11_x.h (dxgi.h on other Windows platforms).
Library: Use d3d11_x.lib (dxgi.lib on other Windows platforms).