Struct ShaderMetadata

Nested Relationships

Nested Types

Struct Documentation

struct ShaderMetadata

The metadata associated with a shader ID, including the shader source code, if available.

The shader source code returned with this object is the original shader code as written by the application or generated by the compiler. Thus, it will not contain after-the-fact generated SPIR-V -> GLSL/HLSL as the high-level language. In order to obtain this representation, use the (

Todo:

: not yet implemented) ShaderConverter module to convert the intermediate shader source to the desired high-level shading language.

Public Types

enum InputRate

Values:

enumerator PerVertex
enumerator PerInstance

Public Members

ShaderStage stage = {kShaderStageInvalid}

See also

ShaderStage

std::vector<api_types::ShaderLanguage> availableLanguages

The different representations of the shader that are available for the user to request.

introspection::ShaderInterface reflectionData

std::vector<VtxInputDesc> vertexBufferInformation
std::vector<VtxAttribDesc> vertexAttribInformation
IndexType indexBufferType
struct VtxAttribDesc

Public Members

uint32_t location
uint32_t binding
uint32_t format
uint32_t offset
struct VtxInputDesc

Public Members

uint32_t binding
uint32_t stride
uint32_t inputRate