D3D12_SHADER_BYTECODE structure (d3d12.h)

Describes shader data.

Syntax

typedef struct D3D12_SHADER_BYTECODE {
  const void *pShaderBytecode;
  SIZE_T     BytecodeLength;
} D3D12_SHADER_BYTECODE;

Members

pShaderBytecode

A pointer to a memory block that contains the shader data.

BytecodeLength

The size, in bytes, of the shader data that the pShaderBytecode member points to.

Remarks

The D3D12_GRAPHICS_PIPELINE_STATE_DESC and D3D12_COMPUTE_PIPELINE_STATE_DESC objects contain D3D12_SHADER_BYTECODE structures that describe various shader types.

When loading a shader from FXC/DXC, this may be the entire compiled blob as is loaded from disk.

Requirements

Requirement Value
Header d3d12.h

See also

CD3DX12_SHADER_BYTECODE

Core Structures