Information on fixed uniform function. More...
#include <kanzi/core.ui/platform/graphics_backend/gl/shader.hpp>
Public Attributes | |
KzuExpressionValidatorOperation | bindingOperation |
Binding operation instruction enum or KZU_EXPRESSION_VALIDATOR_OPERATION_WRITE as placeholder is none. More... | |
PropertyDataType | dataType |
Uniform data type. More... | |
FixedUniform | enumValue |
Uniform enumeration value. Kanzi uses this for sanity checking. More... | |
FixedUniformFunction | function |
The C++ function to use or nullptr if none. When this is set, Kanzi ignores the optional property binding. More... | |
const char * | name |
Uniform name without optional kz prefix. For example, WorldMatrix. More... | |
optional< AbstractPropertyType > | property |
Optional property binding. Kanzi uses this only if function is nullptr. More... | |
Information on fixed uniform function.
These are the valid combinations of the function and property fields:
const char* kanzi::ShaderProgram::FixedUniformFunctionInfo::name |
Uniform name without optional kz prefix. For example, WorldMatrix.
FixedUniform kanzi::ShaderProgram::FixedUniformFunctionInfo::enumValue |
Uniform enumeration value. Kanzi uses this for sanity checking.
KzuExpressionValidatorOperation kanzi::ShaderProgram::FixedUniformFunctionInfo::bindingOperation |
Binding operation instruction enum or KZU_EXPRESSION_VALIDATOR_OPERATION_WRITE as placeholder is none.
FixedUniformFunction kanzi::ShaderProgram::FixedUniformFunctionInfo::function |
The C++ function to use or nullptr if none. When this is set, Kanzi ignores the optional property binding.
optional<AbstractPropertyType> kanzi::ShaderProgram::FixedUniformFunctionInfo::property |
Optional property binding. Kanzi uses this only if function is nullptr.
PropertyDataType kanzi::ShaderProgram::FixedUniformFunctionInfo::dataType |
Uniform data type.