struct ShaderParameterInformation

Information about a shader parameter.

Public

Constructors

ShaderParameterInformation

ShaderParameterInformation() = default

ShaderParameterInformation

ShaderParameterInformation(String name, String gpuVariableName, StringID rendererSemantic = StringID::kNone)

Fields

Name

String Name

The name of the parameter.

Name must be unique between all data and object parameters in a shader.

GpuVariableName

String GpuVariableName

Name of the GPU variable in the GpuProgram that the parameter corresponds with.

RendererSemantic

StringID RendererSemantic

Optional semantic that allows you to specify the use of this parameter in the renderer.

The actual value of the semantic depends on the current Renderer and its supported list of semantics. Elements with renderer semantics should not be updated by the user, and will be updated by the renderer. These semantics will also be used to determine if a shader is compatible with a specific renderer or not. Value of 0 signifies the parameter is not used by the renderer.

DefaultValueIndex

u32 DefaultValueIndex

Index of the default value inside the Shader.

Should not be set externally by the user.

AttributeIndex

u32 AttributeIndex

Index to a set of optional attributes attached to the parameter.

Should not be set externally by the user.