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

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

#include <mat_traits_concept.hpp>

Concept definition

template<class T>
concept glsl_mat = requires {
{ mat_traits<T>::get_columns() } -> std::same_as<size_t>;
{ mat_traits<T>::get_rows() } -> std::same_as<size_t>;
{ mat_traits<T>::get_value_type() } -> std::same_as<ValueType>;
{ mat_traits<T>::get_data(std::declval<const T&>()) } -> std::same_as<mat_data>;
{ mat_traits<T>::get_value(std::declval<const mat_data&>()) } -> std::same_as<T>;
}
Concept defining which type can be converted to glsl mat type.
Definition mat_traits_concept.hpp:68
Contains all static functions needed for layout and struct classes to interpret given mat type as gls...
Definition mat_traits_concept.hpp:42

Detailed Description

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

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