HLSLFxcShaderBinary

The FXC (HLSL) specialization of IShaderBinary interface. Handles everything necessary to export DXC compiled binary shader data.

File location: sdk/tools/ffx_shader_compiler/src/hlsl_compiler.h

Methods

Return type

Description

uint8_t*

HLSL (FXC) Shader binary buffer accessor.

size_t

Queries the HLSL (FXC) shader binary size.

Detailed description

The FXC (HLSL) specialization of IShaderBinary interface. Handles everything necessary to export DXC compiled binary shader data.

Data fields

Type

Description

CComPtr<ID3DBlob>

pShader
ID3DBlob shader blob data for this shader binary.

Methods

BufferPointer

Copied!

virtual uint8_t* BufferPointer ()

HLSL (FXC) Shader binary buffer accessor.

Returns:

Pointer to the internal HLSL (FXC) buffer representation.


BufferSize

Copied!

virtual size_t BufferSize ()

Queries the HLSL (FXC) shader binary size.

Returns:

Size of the HLSL (FXC) shader binary