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

Reflection entry for a stage input or output attribute. More...

#include <kanzi/gfx/reflection.hpp>

Public Attributes

uint8_t component
 First component within the slot (the GLSL layout(component = M) qualifier; defaults to 0).
 
uint8_t location
 Attribute binding slot (the GLSL layout(location = N) qualifier).
 
TypeInfo typeInfo
 Primitive type, component count, and array arity of the attribute.
 

Detailed Description

Reflection entry for a stage input or output attribute.

Carries the attribute's location and component layout qualifiers alongside its type info. For fragment outputs the pair (location, component) identifies which channels of which color attachment the shader writes, which pipeline validation uses to reconcile against the blend state's per-channel write mask.

Since
Kanzi 4.1.0

Member Data Documentation

◆ location

uint8_t kanzi::gfx::reflection::Attribute::location

Attribute binding slot (the GLSL layout(location = N) qualifier).

◆ component

uint8_t kanzi::gfx::reflection::Attribute::component

First component within the slot (the GLSL layout(component = M) qualifier; defaults to 0).

◆ typeInfo

TypeInfo kanzi::gfx::reflection::Attribute::typeInfo

Primitive type, component count, and array arity of the attribute.


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