A transfer function tag, the second parameter of BasicRGB.
More...
template<typename T>
{ T::PREFIX } -> std::convertible_to<std::string_view>;
{ T::encode(value) } -> std::same_as<float>;
{ T::decode(value) } -> std::same_as<float>;
{ T::clamp(value) } -> std::same_as<float>;
}
A transfer function tag, the second parameter of BasicRGB.
A transfer function tag, the second parameter of BasicRGB.
A tag is a type with:
- a static PREFIX, put before the gamut name in the color space name ("Lin" gives LinSRGB);
- static encode(float) and decode(float), from linear light to the channel value and back;
- a static clamp(float), bringing a channel value into the range of the encoding.
- Template Parameters
-
Definition at line 91 of file Transfer.cppm.