struct ShaderCompilerMetaData

Inherits: IReflectable

Meta-data for a shader.

Can be used for compiling specific variations of the shader.

Public

Methods

staticGetRttiStatic

static RTTIType *GetRttiStatic()

GetRtti

RTTIType *GetRtti() const override

Returns an interface you can use to access class' Run Time Type Information.

Fields

Source

String Source

High level source code of the shader.

NameInCache

String NameInCache

Unique name of this shader in the shader cache.

ShaderHash

Array<u64, 2> ShaderHash

Hash of the shader's source code (not including the include file source).

GPUProgramTypes

TInlineArray<GpuProgramType, 2> GPUProgramTypes

Types of GPU programs used by the shader.

Variations

Vector<ShaderVariationParameters> Variations

Sets of defines controlling which variations of the shader are present.

Defines

UnorderedMap<String, String> Defines

Optional list of defines to provide when compiling the shader variations.

This is added along with the shader variation defines.

IncludeHashes

Map<String, Array<u64, 2>> IncludeHashes

Hash value for each referenced include file.