Kanzi 4.1.0
kanzi::gfx::reflection::ReflectionInfo Struct Reference

Top-level structure that contains the reflection information for a shader stage or program. More...

#include <kanzi/gfx/reflection.hpp>

Public Attributes

vector< BindingBlockbindingBlocks
 List of binding blocks defined in the shader.
 
InterfaceBlock constantBlock
 The constant block defined in the shader.
 
bool hasBlendEquationAdvanced
 Indicates whether the shader program declares support for all advanced blend equations.
 
bool hasGPUSceneMaterialInfo
 Indicates whether the shader program defines GPU scene material info.
 
VectorMap< string, AttributeinputAttributes
 Mapping of stage-input attribute name to its layout and type info.
 
VectorMap< string, AttributeoutputAttributes
 Mapping of stage-output attribute name to its layout and type info.
 
VectorMap< string, InterfaceBlockstructInterfaceBlocks
 List of user defined structs in the shader, including kzGPUSceneMaterialInfo.
 

Detailed Description

Top-level structure that contains the reflection information for a shader stage or program.

Since
Kanzi 4.0.0

Member Data Documentation

◆ bindingBlocks

vector<BindingBlock> kanzi::gfx::reflection::ReflectionInfo::bindingBlocks

List of binding blocks defined in the shader.

◆ constantBlock

InterfaceBlock kanzi::gfx::reflection::ReflectionInfo::constantBlock

The constant block defined in the shader.

◆ inputAttributes

VectorMap<string, Attribute> kanzi::gfx::reflection::ReflectionInfo::inputAttributes

Mapping of stage-input attribute name to its layout and type info.

◆ outputAttributes

VectorMap<string, Attribute> kanzi::gfx::reflection::ReflectionInfo::outputAttributes

Mapping of stage-output attribute name to its layout and type info.

◆ structInterfaceBlocks

VectorMap<string, InterfaceBlock> kanzi::gfx::reflection::ReflectionInfo::structInterfaceBlocks

List of user defined structs in the shader, including kzGPUSceneMaterialInfo.

Since
Kanzi 4.1.0
Attention
This feature is experimental and is likely to change in future releases.

◆ hasBlendEquationAdvanced

bool kanzi::gfx::reflection::ReflectionInfo::hasBlendEquationAdvanced

Indicates whether the shader program declares support for all advanced blend equations.

Render state validation uses this to determine if the shader program can be used with advanced blending modes.

Since
Kanzi 4.1.0

◆ hasGPUSceneMaterialInfo

bool kanzi::gfx::reflection::ReflectionInfo::hasGPUSceneMaterialInfo

Indicates whether the shader program defines GPU scene material info.

Since
Kanzi 4.1.0
Attention
This feature is experimental and is likely to change in future releases.

The documentation for this struct was generated from the following file: