Kanzi Framework  3.9.0
Kanzi Engine API
kanzi::ShaderProgram::BindingInfo Struct Reference

Binding info. More...

#include <kanzi/core.ui/platform/graphics_backend/gl/shader.hpp>

Public Member Functions

 BindingInfo (AbstractBindingSharedPtr bindingParam, PropertyDataType dataTypeParam, string_view nameParam)
 Constructor. More...
 
 BindingInfo (AbstractBindingSharedPtr bindingParam, AbstractPropertyType propertyType)
 Constructor. More...
 

Public Attributes

AbstractBindingSharedPtr binding
 Contained binding. More...
 
PropertyDataType targetDataType
 Target data type. More...
 
string targetName
 Target render value name. More...
 
AbstractPropertyType targetPropertyType
 Target property type. More...
 

Detailed Description

Binding info.

Constructor & Destructor Documentation

◆ BindingInfo() [1/2]

kanzi::ShaderProgram::BindingInfo::BindingInfo ( AbstractBindingSharedPtr  bindingParam,
PropertyDataType  dataTypeParam,
string_view  nameParam 
)
inline

Constructor.

Parameters
bindingParamBinding used.
dataTypeParamTarget data type.
nameParamTarget name.

◆ BindingInfo() [2/2]

kanzi::ShaderProgram::BindingInfo::BindingInfo ( AbstractBindingSharedPtr  bindingParam,
AbstractPropertyType  propertyType 
)
inline

Constructor.

Binding without a render value name will not bind to a render value. This kind of construction should be used when binding to a variable.

Parameters
bindingParamBinding used.
propertyTypeTarget property type.

Member Data Documentation

◆ binding

AbstractBindingSharedPtr kanzi::ShaderProgram::BindingInfo::binding

Contained binding.

◆ targetPropertyType

AbstractPropertyType kanzi::ShaderProgram::BindingInfo::targetPropertyType

Target property type.

◆ targetDataType

PropertyDataType kanzi::ShaderProgram::BindingInfo::targetDataType

Target data type.

◆ targetName

string kanzi::ShaderProgram::BindingInfo::targetName

Target render value name.


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