GLSLShaderBinary

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

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

Methods

Return type

Description

uint8_t*

GLSL Shader binary buffer accessor.

size_t

Queries the GLSL shader binary size.

Detailed description

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

Data fields

Type

Description

std::vector<uint8_t>

spirv
spirv representation of the shader binary buffer

Methods

BufferPointer

Copied!

virtual uint8_t* BufferPointer ()

GLSL Shader binary buffer accessor.

Returns:

Pointer to the internal GLSL buffer representation.


BufferSize

Copied!

virtual size_t BufferSize ()

Queries the GLSL shader binary size.

Returns:

Size of the GLSL shader binary