2
3
4
5
6
7
8
11#ifndef _GLSL_STRUCT_FUNCTIONS_HPP_
12 #define _GLSL_STRUCT_FUNCTIONS_HPP_
14 #include <glslstruct/config.hpp>
17_GLSL_STRUCT_ERROR(
"This is only available for c++17 and greater!");
22
23
24
28
29
30
34
35
36
std::string get_array_elem_name(std::string_view arrayName, size_t elemIdx)
returns array elem name
Definition functions.cpp:26
std::string get_struct_elem_name(std::string_view structName, std::string_view elemName)
returns struct elem name
Definition functions.cpp:30
size_t ceil_to_nearest_multiple(size_t valueToRoundUp, size_t multipleValue) noexcept
returns value rounded up to nearest multiple of given value
Definition functions.cpp:21
#define _GLSL_STRUCT_HAS_CXX17
check if compiler has c++ version greater or equal to c++17
Definition config.hpp:130
Main namespace of glslstruct library.
Definition scalar_layout_traits.hpp:23