DXGI_OFFER_RESOURCE_PRIORITY enumeration (dxgi1_2.h)

Identifies the importance of a resource’s content when you call the IDXGIDevice2::OfferResources method to offer the resource.

Syntax

typedef enum _DXGI_OFFER_RESOURCE_PRIORITY {
  DXGI_OFFER_RESOURCE_PRIORITY_LOW = 1,
  DXGI_OFFER_RESOURCE_PRIORITY_NORMAL,
  DXGI_OFFER_RESOURCE_PRIORITY_HIGH
} DXGI_OFFER_RESOURCE_PRIORITY;

Constants

 
DXGI_OFFER_RESOURCE_PRIORITY_LOW
Value: 1
The resource is low priority. The operating system discards a low priority resource before other offered resources with higher priority. It is a good programming practice to mark a resource as low priority if it has no useful content.
DXGI_OFFER_RESOURCE_PRIORITY_NORMAL
The resource is normal priority. You mark a resource as normal priority if it has content that is easy to regenerate.
DXGI_OFFER_RESOURCE_PRIORITY_HIGH
The resource is high priority. The operating system discards other offered resources with lower priority before it discards a high priority resource. You mark a resource as high priority if it has useful content that is difficult to regenerate.

Remarks

Priority determines how likely the operating system is to discard an offered resource. Resources offered with lower priority are discarded first.

Requirements

Requirement Value
Header dxgi1_2.h

See also

DXGI Enumerations

IDXGIDevice2::OfferResources

IDXGIDevice2::ReclaimResource