D3D12_BARRIER_GROUP structure (d3d12.h)

Describes a group of barriers of a given type.

Syntax

typedef struct D3D12_BARRIER_GROUP {
  D3D12_BARRIER_TYPE Type;
  UINT32             NumBarriers;
  union {
    const D3D12_GLOBAL_BARRIER  *pGlobalBarriers;
    const D3D12_TEXTURE_BARRIER *pTextureBarriers;
    const D3D12_BUFFER_BARRIER  *pBufferBarriers;
  };
} D3D12_BARRIER_GROUP;

Members

Type

The type of barriers in the group.

NumBarriers

The number of barriers in the group.

pGlobalBarriers

A pointer to an array of D3D12_GLOBAL_BARRIER structures, if Type is D3D12_BARRIER_TYPE::D3D12_BARRIER_TYPE_GLOBAL.

pTextureBarriers

A pointer to an array of D3D12_TEXTURE_BARRIER structures, if Type is D3D12_BARRIER_TYPE::D3D12_BARRIER_TYPE_TEXTURE.

pBufferBarriers

A pointer to an array of D3D12_BUFFER_BARRIER structures, if Type is D3D12_BARRIER_TYPE::D3D12_BARRIER_TYPE_BUFFER.

Requirements

Requirement Value
Header d3d12.h