D3D12_RESOURCE_ALIASING_BARRIER structure (d3d12.h)

Describes the transition between usages of two different resources that have mappings into the same heap.

Syntax

typedef struct D3D12_RESOURCE_ALIASING_BARRIER {
  ID3D12Resource *pResourceBefore;
  ID3D12Resource *pResourceAfter;
} D3D12_RESOURCE_ALIASING_BARRIER;

Members

pResourceBefore

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

pResourceAfter

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

Remarks

This structure is a member of the D3D12_RESOURCE_BARRIER structure.

Both the before and the after resources can be specified or one or both resources can be NULL, which indicates that any placed or reserved resource could cause aliasing.

Refer to the usage models described in CreatePlacedResource.

Requirements

Requirement Value
Header d3d12.h

See also

Core Structures

Using Resource Barriers to Synchronize Resource States in Direct3D 12