tp::SpecializationConstant struct

Describes the value of a particular specialization constant of any scalar boolean, integer or floating point type.

Constructors, destructors, conversion operators

template<typename T>
SpecializationConstant(uint32_t constantID, T value)

Function documentation

template<typename T>
tp::SpecializationConstant::SpecializationConstant(uint32_t constantID, T value)

Parameters
constantID The ID of the constant as referenced in the shader.
value The assigned value of the matching type.