IDXGIResource::SetEvictionPriority method (dxgi.h)
Set the priority for evicting the resource from memory.
Syntax
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
Requirement | Value |
---|---|
Target Platform | Windows |
Header | dxgi.h |
Library | DXGI.lib |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for