HLSLDxcShaderBinary

The DXC (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 (DXC) Shader binary buffer accessor.

size_t

Queries the HLSL (DXC) shader binary size.

Detailed description

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

Data fields

Type

Description

CComPtr<IDxcResult>

pResults
IDxcResult data from the shader compilation process for this shader binary.

CComPtr<IDxcBlob>

pShader
IDxcBlob shader blob data for this shader binary.

Methods

BufferPointer

Copied!

virtual uint8_t* BufferPointer ()

HLSL (DXC) Shader binary buffer accessor.

Returns:

Pointer to the internal HLSL (DXC) buffer representation.


BufferSize

Copied!

virtual size_t BufferSize ()

Queries the HLSL (DXC) shader binary size.

Returns:

Size of the HLSL (DXC) shader binary