Skip to main content
Describes shader data.

Syntax

Members

pShaderBytecode
Type: const void *
A pointer to a memory block that contains the shader data. BytecodeLength
Type: SIZE_T
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

Header: d3d12_xs.h or d3d12_x.h
Library: d3d12_xs.lib or d3d12_x.lib
Supported Platforms: XBOX Series consoles and XBOX One family

See Also

CD3DX12_SHADER_BYTECODE Core Structures
Last modified on August 20, 2026