2
3
4
5
6
7
8
11#ifndef _GLSL_STRUCT_GLSL_OPENGL_WRITER_HPP_
12 #define _GLSL_STRUCT_GLSL_OPENGL_WRITER_HPP_
14 #include <glslstruct/config.hpp>
18 "This is only available for c++17 and greater and when types are not disabled with defined GLSL_STRUCT_DISABLE_TYPES!"
22 #include <glslstruct/struct/base_struct.hpp>
23 #include <glslstruct/writer/glsl/writer.hpp>
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
53
54
55
68 void append_struct(std::string_view name,
const struct_type& structType);
struct to opengl glsl writer
Definition writer.hpp:56
void append_shader_storage_buffer(size_t binding, std::string_view name, const std140_layout &layout)
appends shader storage buffer
Definition writer.cpp:46
void append_struct(std::string_view name, const struct_type &structType)
appends struct with given name
Definition writer.cpp:31
static std::string _get_layout_data(size_t binding, std::string_view stdType)
returns layout data string
Definition writer.cpp:25
void append_struct(const struct_type &structType)
appends struct with generated name
Definition writer.cpp:35
utils::glsl_writer _writer
glsl writer instance
Definition writer.hpp:58
const std::string & to_string() const noexcept
returns result string
Definition writer.cpp:66
glsl_opengl_writer()
default constructor
void append_uniform_buffer(size_t binding, std::string_view name, const std140_layout &layout)
appends uniform buffer
Definition writer.cpp:37
general glsl writer
Definition writer.hpp:120
#define _GLSL_STRUCT_HAS_TYPES
check if user not disabled type containers using GLSL_STRUCT_DISABLE_TYPES
Definition config.hpp:162
Main namespace of glslstruct library.
Definition scalar_layout_traits.hpp:23