D3D12_RESOURCE_TRANSITION_BARRIER structure (d3d12.h)

Describes the transition of subresources between different usages.

Syntax

typedef struct D3D12_RESOURCE_TRANSITION_BARRIER {
  ID3D12Resource        *pResource;
  UINT                  Subresource;
  D3D12_RESOURCE_STATES StateBefore;
  D3D12_RESOURCE_STATES StateAfter;
} D3D12_RESOURCE_TRANSITION_BARRIER;

Members

pResource

A pointer to the ID3D12Resource object that represents the resource used in the transition.

Subresource

The index of the subresource for the transition. Use the D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES flag ( 0xffffffff ) to transition all subresources in a resource at the same time.

StateBefore

The "before" usages of the subresources, as a bitwise-OR'd combination of D3D12_RESOURCE_STATES enumeration constants.

StateAfter

The "after" usages of the subresources, as a bitwise-OR'd combination of D3D12_RESOURCE_STATES enumeration constants.

Remarks

This struct is used by the Transition member of the D3D12_RESOURCE_BARRIER struct.

Requirements

Requirement Value
Header d3d12.h

See also

Core Structures

Using Resource Barriers to Synchronize Resource States in Direct3D 12