Shader reflection library.
◆ AccessStage
Specifies the stages that use the resource.
- Since
- Kanzi 4.0.0
| Enumerator |
|---|
| VertexStage | Resource is accessed by vertex stage(s).
|
| FragmentStage | Resource is accessed by fragment stage.
|
| ComputeStage | Resource is accessed by compute stage.
|
| All | Access by all stages.
|
◆ PrimitiveType
Specifies the primitive types.
- Since
- Kanzi 4.0.0
| Enumerator |
|---|
| Invalid | An invalid primitive type.
|
| Boolean | A boolean primitive type.
|
| Integer | An integral primitive type.
|
| UnsignedInteger | An unsigned integral primitive type.
|
| FloatingPoint | A floating point primitive type.
|
◆ isReservedGPUSceneDescriptorSetIndex()
| bool kanzi::gfx::reflection::isReservedGPUSceneDescriptorSetIndex |
( |
uint32_t | index | ) |
|
|
inline |
Checks if given descriptor set is reserved by reserved gpu scene.
- Since
- Kanzi 4.1.0
- Attention
- This feature is experimental and is likely to change in future releases.
◆ isReservedGPUSceneUniform()
Checks if given descriptor set and binding index is reserved by reserved gpu scene uniform.
- Since
- Kanzi 4.1.0
- Attention
- This feature is experimental and is likely to change in future releases.
◆ to_format()
Converts a TypeInfo structure into a graphics format.
- Parameters
-
- Returns
- The graphics format that represents the type info.
- Since
- Kanzi 4.0.0
◆ operator==()
Equality operator for the TypeInfo.
- Parameters
-
- Returns
- If the values are equivalent, true, otherwise false.
- Since
- Kanzi 4.0.0
◆ operator!=()
Not equality operator for the TypeInfo.
- Parameters
-
- Returns
- If the values are not equivalent, true, otherwise false.
- Since
- Kanzi 4.0.0
◆ mergeReflectionInfos()
Merges reflection information into a unified structure.
This is commonly used to combine individual reflection information for multiple shader stages into reflection for the whole program.
- Parameters
-
| infos | A span of reflection information in stage order. |
- Returns
- The combined reflection information.
- Since
- Kanzi 4.0.0
◆ ReservedGPUSceneDescriptorSetIndex
| uint32_t kanzi::gfx::reflection::ReservedGPUSceneDescriptorSetIndex |
|
static |
Specifies the reserved gpu scene descriptor set index.
Should be in sync with Studio KANZI_SHADER_GPU_SCENE_DESCRIPTOR_SET.
- Since
- Kanzi 4.1.0
- Attention
- This feature is experimental and is likely to change in future releases.
◆ ReservedGPUSceneUniformBindingIndex
| uint32_t kanzi::gfx::reflection::ReservedGPUSceneUniformBindingIndex |
|
static |
Specifies the reserved gpu scene uniform binding index.
Should be in sync with Studio KANZI_SHADER_GPU_SCENE_UNIFORM_BINDING.
- Since
- Kanzi 4.1.0
- Attention
- This feature is experimental and is likely to change in future releases.
◆ ReservedGPUSceneBindlessTextures2DBindingIndex
| uint32_t kanzi::gfx::reflection::ReservedGPUSceneBindlessTextures2DBindingIndex |
|
static |
Specifies the reserved gpu scene bindless textures binding index.
Should be in sync with Studio KANZI_SHADER_GPU_SCENE_BINDLESS_TEXTURES_2D_BINDING.
- Since
- Kanzi 4.1.0
- Attention
- This feature is experimental and is likely to change in future releases.
◆ GPUSceneMaterialInfoName
| string kanzi::gfx::reflection::GPUSceneMaterialInfoName |
|
static |
Specifies the reserved gpu scene material info uniform name.
- Since
- Kanzi 4.1.0
- Attention
- This feature is experimental and is likely to change in future releases.
◆ GPUSceneName
| string kanzi::gfx::reflection::GPUSceneName |
|
static |
Specifies the reserved gpu scene uniform name.
- Since
- Kanzi 4.1.0
- Attention
- This feature is experimental and is likely to change in future releases.
◆ GPUSceneTexturesNamePrefix
| string kanzi::gfx::reflection::GPUSceneTexturesNamePrefix |
|
static |
Specifies the reserved gpu scene textures name prefix.
- Since
- Kanzi 4.1.0
- Attention
- This feature is experimental and is likely to change in future releases.