D3D12_RESOURCE_BARRIER structure

Describes a resource barrier (transition in resource use).

Syntax

typedef struct D3D12_RESOURCE_BARRIER {
  D3D12_RESOURCE_BARRIER_TYPE  Type;
  D3D12_RESOURCE_BARRIER_FLAGS Flags;
  union {
    D3D12_RESOURCE_TRANSITION_BARRIER Transition;
    D3D12_RESOURCE_ALIASING_BARRIER   Aliasing;
    D3D12_RESOURCE_UAV_BARRIER        UAV;
  };
} D3D12_RESOURCE_BARRIER;

Members

Type

A D3D12_RESOURCE_BARRIER_TYPE-typed value that specifies the type of resource barrier. This member determines which type to use in the union below.

Flags

Specifies a D3D12_RESOURCE_BARRIER_FLAGS enumeration constant such as for "begin only" or "end only".

__unnamed_union_0727_2

__unnamed_union_0727_2.Transition

__unnamed_union_0727_2.Aliasing

__unnamed_union_0727_2.UAV

Remarks

This structure is used by the ID3D12GraphicsCommandList::ResourceBarrier method.

Requirements

   
Header d3d12.h

See Also

Core Structures

Using Resource Barriers to Synchronize Resource States in Direct3D 12