CD3DX12_RESOURCE_BARRIER structure

A helper structure to enable easy initialization of a D3D12_RESOURCE_BARRIER structure.

Syntax

struct CD3DX12_RESOURCE_BARRIER  : public D3D12_RESOURCE_BARRIER{
                           CD3DX12_RESOURCE_BARRIER();
                           explicit CD3DX12_RESOURCE_BARRIER(const D3D12_RESOURCE_BARRIER &o);
  CD3DX12_RESOURCE_BARRIER static inline Transition(ID3D12Resource* pResource, D3D12_RESOURCE_STATES stateBefore, D3D12_RESOURCE_STATES stateAfter, UINT subresource = D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES, D3D12_RESOURCE_BARRIER_FLAGS flags = D3D12_RESOURCE_BARRIER_FLAG_NONE);
  CD3DX12_RESOURCE_BARRIER static inline Aliasing(ID3D12Resource* pResourceBefore, ID3D12Resource* pResourceAfter);
  CD3DX12_RESOURCE_BARRIER static inline UAV(ID3D12Resource* pResource);
                           operator const D3D12_RESOURCE_BARRIER&() const;
};

Members

CD3DX12_RESOURCE_BARRIER()

Creates a new, uninitialized, instance of a CD3DX12_RESOURCE_BARRIER.

explicit CD3DX12_RESOURCE_BARRIER(const D3D12_RESOURCE_BARRIER &o)

Creates a new instance of a CD3DX12_RESOURCE_BARRIER, initialized with the contents of another D3D12_RESOURCE_BARRIER.

static inline Transition(ID3D12Resource* pResource, D3D12_RESOURCE_STATES stateBefore, D3D12_RESOURCE_STATES stateAfter, UINT subresource = D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES, D3D12_RESOURCE_BARRIER_FLAGS flags = D3D12_RESOURCE_BARRIER_FLAG_NONE)

Transitions between resource states, using the following parameters:

ID3D12Resource* pResource

D3D12_RESOURCE_STATES stateBefore

D3D12_RESOURCE_STATES stateAfter

(opt) UINT subresource = D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES

(opt) D3D12_RESOURCE_BARRIER_FLAGS flags = D3D12_RESOURCE_BARRIER_FLAG_NONE

static inline Aliasing(ID3D12Resource* pResourceBefore, ID3D12Resource* pResourceAfter)

Creates aliases for the resource before and after the barrier transition. Parameters:

ID3D12Resource* pResourceBefore

ID3D12Resource* pResourceAfter

static inline UAV(ID3D12Resource* pResource)

Creates an unordered-access-view (UAV) for the resource. Parameters:

ID3D12Resource* pResource

operator const D3D12_RESOURCE_BARRIER&() const

Defines the & pass-by-reference operator for the parent structure type.

Requirements

Requirement Value
Header
D3dx12.h

See also

D3D12_RESOURCE_BARRIER

Helper Structures for D3D12