|
GLSL Struct 1.4.8
glslstruct
|
glsl type visitors More...
Concepts | |
| concept | glslstruct::type_visitor |
| glsl type visitor concept | |
Classes | |
| class | glslstruct::type_hash_visitor |
| visitor which calculate has of type More... | |
| class | glslstruct::eq_type_visitor< T > |
| visitor which checks if value glsl type A is equal to glsl type B More... | |
| struct | glslstruct::is_type_visitor< T > |
| struct with bool_constant which is true if type T is type visitor More... | |
Functions | |
| glslstruct::ENUM_CLASS_BASE (BaseType, uint8_t,(Scalar),(Vec),(Mat),(Struct),(Array)) template< glsl_type T > class is_of_type_visitor | |
| base_type types in enum values | |
| template<glsl_type T> | |
| _GLSL_STRUCT_INLINE17 _GLSL_STRUCT_CONSTEXPR20 bool | glslstruct::is_of_type (const base_type_handle &type) |
| requests is_of_type visitor to visit base_type | |
| template<glsl_type T> | |
| _GLSL_STRUCT_INLINE17 _GLSL_STRUCT_CONSTEXPR20 bool | glslstruct::is_of_type (const std::shared_ptr< T > &) |
| requests is_of_type visitor to visit any glsl type | |
| _GLSL_STRUCT_EXPORT bool | glslstruct::is_of_type (const base_type_handle &type, BaseType baseType) |
| requests is_of_type visitor to visit base_type | |
| template<glsl_type T> | |
| _GLSL_STRUCT_INLINE17 _GLSL_STRUCT_CONSTEXPR20 bool | glslstruct::is_of_type (const std::shared_ptr< T > &, const BaseType baseType) |
| requests is_of_type visitor to visit any glsl type | |
| template<glsl_type T> | |
| std::shared_ptr< T > | glslstruct::dynamic_type_cast (const base_type_handle &type) |
| checks if base_type is of given type and returns handle to this type or nullptr if it is not | |
| template<glsl_type T> | |
| base_type_handle | glslstruct::dynamic_type_cast (const std::shared_ptr< T > &type) |
| converts any glsl type handle to base_type handle | |
| template<glsl_type T> | |
| _GLSL_STRUCT_INLINE17 _GLSL_STRUCT_CONSTEXPR20 std::shared_ptr< T > | glslstruct::static_type_cast (const base_type_handle &type) |
| checks if base_type is of given type and returns handle to this type or error if it is not | |
| template<glsl_type T> | |
| base_type_handle | glslstruct::static_type_cast (const std::shared_ptr< T > &type) |
| converts any glsl type handle to base_type handle | |
Variables | |
| template<class T> | |
| static _GLSL_STRUCT_CONSTEXPR17 bool | glslstruct::is_type_visitor_v = type_visitor<T> |
| bool which is true if type T is type visitor | |
glsl type visitors
sample type visitor:
|
inlinenodiscard |
checks if base_type is of given type and returns handle to this type or nullptr if it is not
|
inlinenodiscard |
converts any glsl type handle to base_type handle
| glslstruct::ENUM_CLASS_BASE | ( | BaseType | , |
| uint8_t | , | ||
| (Scalar) | , | ||
| (Vec) | , | ||
| (Mat) | , | ||
| (Struct) | , | ||
| (Array) | ) |
base_type types in enum values
visitor which checks type of glsl type
| T | requested type |
result
default constructor
default destructor
type visitor
returns result
|
nodiscard |
requests is_of_type visitor to visit base_type
|
nodiscard |
|
nodiscard |
requests is_of_type visitor to visit any glsl type
|
nodiscard |
requests is_of_type visitor to visit any glsl type
| baseType | type which is required |
|
nodiscard |
checks if base_type is of given type and returns handle to this type or error if it is not
|
inlinenodiscard |
converts any glsl type handle to base_type handle
|
static |
bool which is true if type T is type visitor
| T | type to check if it is type visitor |