CD3DX12_SHADER_BYTECODE structure

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

Syntax

struct CD3DX12_SHADER_BYTECODE  : public D3D12_SHADER_BYTECODE{
   CD3DX12_SHADER_BYTECODE();
   explicit CD3DX12_SHADER_BYTECODE(const D3D12_SHADER_BYTECODE &o);
   CD3DX12_SHADER_BYTECODE(ID3DBlob* pShaderBlob);
   CD3DX12_SHADER_BYTECODE(const void* _pShaderBytecode, SIZE_T bytecodeLength);
   operator const D3D12_SHADER_BYTECODE&() const;
};

Members

CD3DX12_SHADER_BYTECODE()

Creates a new, uninitialized, instance of a CD3DX12_SHADER_BYTECODE.

explicit CD3DX12_SHADER_BYTECODE(const D3D12_SHADER_BYTECODE &o)

Creates a new instance of a CD3DX12_SHADER_BYTECODE, initialized with the contents of another D3D12_SHADER_BYTECODE structure.

CD3DX12_SHADER_BYTECODE(ID3DBlob* pShaderBlob)

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

ID3DBlob* pShaderBlob

CD3DX12_SHADER_BYTECODE(const void* _pShaderBytecode, SIZE_T bytecodeLength)

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

void* _pShaderBytecode

SIZE_T bytecodeLength

operator const D3D12_SHADER_BYTECODE&() const

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

Requirements

Header
D3dx12.h

See also

D3D12_SHADER_BYTECODE

Helper Structures for D3D12