Magnum::Vk::ShaderSpecialization class new in Git master

Shader specialization.

Used by ShaderSet for specifying shader specialization constants. See its documentation for more information.

Constructors, destructors, conversion operators

ShaderSpecialization(UnsignedInt id, Int value)
Construct an integer specialization constant.
ShaderSpecialization(UnsignedInt id, Float value)
Construct a float specialization constant.
ShaderSpecialization(UnsignedInt id, bool value)
Construct a boolean specialization constant.

Public functions

auto id() const -> UnsignedInt
Specialization constant ID.
auto data() const -> UnsignedInt
Specialization value data.

Function documentation

Magnum::Vk::ShaderSpecialization::ShaderSpecialization(UnsignedInt id, Int value)

Construct an integer specialization constant.

Parameters
id Specialization constant ID
value Specialized value

Magnum::Vk::ShaderSpecialization::ShaderSpecialization(UnsignedInt id, Float value)

Construct a float specialization constant.

Parameters
id Specialization constant ID
value Specialized value

Magnum::Vk::ShaderSpecialization::ShaderSpecialization(UnsignedInt id, bool value)

Construct a boolean specialization constant.

Parameters
id Specialization constant ID
value Specialized value

UnsignedInt Magnum::Vk::ShaderSpecialization::data() const

Specialization value data.

The contents can be an integer, a float or a boolean extended to four bytes based on what constructor got used.