GLSL Struct 1.4.0
glslstruct
Loading...
Searching...
No Matches
glslstruct::utils::glsl_scalar Concept Reference

Concept defining which type can be converted to glsl scalar type. More...

#include <scalar_traits_concept.hpp>

Concept definition

template<class T>
concept glsl_scalar = requires {
{ scalar_traits<T>::get_value_type() } -> std::same_as<ValueType>;
{ scalar_traits<T>::get_data(std::declval<const T&>()) } -> std::same_as<scalar_data>;
{ scalar_traits<T>::get_value(std::declval<const scalar_data&>()) } -> std::same_as<T>;
}
Concept defining which type can be converted to glsl scalar type.
Definition scalar_traits_concept.hpp:66
Contains all static functions needed for layout and struct classes to interpret given scalar type as ...
Definition scalar_traits_concept.hpp:40

Detailed Description

Concept defining which type can be converted to glsl scalar type.

Template Parameters
Ttype for which converter to glsl scalar type should be defined