CD3DX12_CLEAR_VALUE structure

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

Syntax

struct CD3DX12_CLEAR_VALUE  : public D3D12_CLEAR_VALUE{
   CD3DX12_CLEAR_VALUE();
   explicit CD3DX12_CLEAR_VALUE(const D3D12_CLEAR_VALUE &o);
   CD3DX12_CLEAR_VALUE(DXGI_FORMAT format, const FLOAT color[ 4 ]);
   CD3DX12_CLEAR_VALUE(DXGI_FORMAT format, FLOAT depth, UINT8 stencil);
   operator const D3D12_CLEAR_VALUE&() const;
};

Members

CD3DX12_CLEAR_VALUE()

Creates a new, uninitialized, instance of a CD3DX12_CLEAR_VALUE.

explicit CD3DX12_CLEAR_VALUE(const D3D12_CLEAR_VALUE &o)

Creates a new instance of a CD3DX12_CLEAR_VALUE, initialized with the contents of another D3D12_CLEAR_VALUE structure.

CD3DX12_CLEAR_VALUE(DXGI_FORMAT format, const FLOAT color[ 4 ])

Creates a new instance of a CD3DX12_CLEAR_VALUE, initializing the following parameters:

DXGI_FORMAT format

FLOAT color[ 4 ]

CD3DX12_CLEAR_VALUE(DXGI_FORMAT format, FLOAT depth, UINT8 stencil)

Creates a new instance of a CD3DX12_CLEAR_VALUE, initializing the following parameters:

DXGI_FORMAT format

FLOAT depth

UINT8 stencil

operator const D3D12_CLEAR_VALUE&() const

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

Requirements

Requirement Value
Header
D3dx12.h

See also

D3D12_CLEAR_VALUE

Helper Structures for D3D12