D3D12_RESOURCE_ALIASING_BARRIER structure

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;
};

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

   
Header d3d12.h

See Also

Core Structures

Using Resource Barriers to Synchronize Resource States in Direct3D 12