Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DXGI_OFFER_RESOURCE_PRIORITY enumeration

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_LOW + 1 ),
  DXGI_OFFER_RESOURCE_PRIORITY_HIGH    = ( DXGI_OFFER_RESOURCE_PRIORITY_NORMAL + 1 )
} DXGI_OFFER_RESOURCE_PRIORITY;

Constants

DXGI_OFFER_RESOURCE_PRIORITY_LOW

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

Header

Dxgi1_2.h

See also

DXGI Enumerations
IDXGIDevice2::OfferResources
IDXGIDevice2::ReclaimResource

 

 

Show:
© 2017 Microsoft