IShaderBinary

A structure encapsulating a platform agnostic shader binary interface. Override for each language representation needed (i.e. HLSL, GLSL, etc.)

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

Construction

Return type

Description

ShadeBinary constructor.

Methods

Return type

Description

uint8_t*

Shader binary buffer accessor. Must be overridden for each language supported (i.e. HLSL, GLSL, etc.)

size_t

BufferSize () = 0
Queries the shader binary size. Must be overridden for each language supported (i.e. HLSL, GLSL, etc.)

Detailed description

A structure encapsulating a platform agnostic shader binary interface. Override for each language representation needed (i.e. HLSL, GLSL, etc.)

Construction

IShaderBinary

Copied!

IShaderBinary ()

ShadeBinary constructor.

Returns:

none


Methods

BufferPointer

Copied!

virtual uint8_t* BufferPointer () = 0

Shader binary buffer accessor. Must be overridden for each language supported (i.e. HLSL, GLSL, etc.)

Returns:

Pointer to the internal buffer representation.


BufferSize

Copied!

virtual size_t BufferSize () = 0

Queries the shader binary size. Must be overridden for each language supported (i.e. HLSL, GLSL, etc.)

Returns:

Size of the shader binary