> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# D3D12_SHADER_BYTECODE

> Describes shader data. (D3D12_SHADER_BYTECODE)

Describes shader data.

## Syntax

```cpp theme={null}
typedef struct D3D12_SHADER_BYTECODE
{
    const void  pShaderBytecode;
    SIZE_T BytecodeLength;
} D3D12_SHADER_BYTECODE
```

### 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](/reference/graphics/d3d12_x/structs/d3d12_graphics_pipeline_state_desc) and [D3D12\_COMPUTE\_PIPELINE\_STATE\_DESC](/reference/graphics/d3d12/structs/d3d12_compute_pipeline_state_desc_public) 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](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/cd3dx12-shader-bytecode)

[Core Structures](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-structures)


## Related topics

- [D3D12_COMPUTE_PIPELINE_STATE_DESC](/reference/graphics/d3d12/structs/d3d12_compute_pipeline_state_desc_public.md)
- [D3D12_DXIL_LIBRARY_DESC (XBOX Series consoles)](/reference/graphics/d3d12/structs/d3d12_dxil_library_desc_public.md)
- [D3D12_PIPELINE_STATE_STREAM_DESC](/reference/graphics/d3d12/structs/d3d12_pipeline_state_stream_desc_public.md)
- [D3D12_SHADER_VISIBILITY](/reference/graphics/d3d12/enums/d3d12_shader_visibility_public.md)
- [D3D12_SHADER_COMPONENT_MAPPING](/reference/graphics/d3d12/enums/d3d12_shader_component_mapping_public.md)
