|
GLSL Struct 1.4.0
glslstruct
|
container for variables for easier initialization of layouts More...
#include <glsl_variable.hpp>
Public Types | |
| using | var_type = T |
| var type | |
Public Member Functions | |
| _GLSL_STRUCT_CONSTEXPR20 | glsl_variable (const std::string_view name) noexcept _GLSL_STRUCT_REQUIRES(utils |
| standard constructor with variable name | |
| _GLSL_STRUCT_CONSTEXPR20 | glsl_variable (const std::string_view name, const T &layout) noexcept _GLSL_STRUCT_REQUIRES(utils |
| standard constructor with variable name and layout | |
Public Attributes | |
| const std::string | varName |
| variable name | |
Static Public Attributes | |
| static _GLSL_STRUCT_CONSTEXPR17 size_t | array_size = Num |
| size of array | |
| static _GLSL_STRUCT_CONSTEXPR17 bool | is_array = array_size > 0 |
| value indicating if it is array or not | |
| static _GLSL_STRUCT_CONSTEXPR17 bool | is_layout = utils::is_glsl_layout_v<T> |
| value indicating if it is layout variable or not | |
container for variables for easier initialization of layouts
| T | variable type |
| num | number of elements in array (default is 0. if it is 0 then it is not array but a single value) |
| using glslstruct::glsl_variable< T, Num >::var_type = T |
var type
|
inlineexplicitnoexcept |
standard constructor with variable name
|
inlinenoexcept |
standard constructor with variable name and layout
|
static |
size of array
|
static |
value indicating if it is array or not
|
static |
value indicating if it is layout variable or not
| const std::string glslstruct::glsl_variable< T, Num >::varName |
variable name