XII Release 0.1.0
Loading...
Searching...
No Matches
xiiGALStateTransitionFlags Struct Reference

Resource state transition flags. More...

#include <CommandList.h>

Classes

struct  Bits
 

Public Types

enum  Enum : StorageType {
  None = 0U , UpdateState = XII_BIT(0) , DiscardContent = XII_BIT(1) , Aliasing = XII_BIT(2) ,
  Default = None
}
 
using StorageType = xiiUInt8
 

Detailed Description

Resource state transition flags.

Member Enumeration Documentation

◆ Enum

Enumerator
None 

No state transition flags.

UpdateState 

Indicates that the internal resource state should be updated to the new state specified by xiiGALStateTransitionDescription, and the GAL should take over the resource state management. If an application was managing the resource state manually, it is responsible for making sure that all subresources are indeed in the designated state. If not used, internal resource state will be unchanged.

                        \note This flag cannot be used when xiiGALStateTransitionDescription.m_TransitionType is xiiGALStateTransitionType::Begin. 
DiscardContent 

If set, the contents of the resource will be discarded, when possible. This may avoid potentially expensive operations such as render target decompression or a pipeline stall when transitioning to xiiGALResourceStateFlags::Common or xiiGALResourceStateFlags::UnorderedAccess state.

Aliasing 

Indicates state transition between aliased resources that share the same memory. Currently, it is only supported for sparse resources that were created with aliasing flag.


The documentation for this struct was generated from the following file: