D3D12_SHADER_BYTECODE structure

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.

Requirements

   
Header d3d12.h

See Also

CD3DX12_SHADER_BYTECODE

Core Structures