GLSL Struct 1.4.0
glslstruct
Loading...
Searching...
No Matches
libs.hpp
1/*
2 * glslstruct - a C++ library designed to easily represent GLSL's Uniform Buffer Objects (UBOs) and Shader Storage Buffer Objects (SSBOs) in C++.
3 *
4 * Licensed under the BSD 3-Clause License with Attribution Requirement.
5 * See the LICENSE file for details: https://github.com/MAIPA01/glslstruct/blob/main/LICENSE
6 *
7 * Copyright (c) 2025, Patryk Antosik (MAIPA01)
8 */
9
10#pragma once
11#ifndef _GLSL_STRUCT_LIBS_HPP_
12 #define _GLSL_STRUCT_LIBS_HPP_
13
14 #include <glslstruct/config.hpp>
15
17_GLSL_STRUCT_ERROR("This is only available for c++17 and greater!");
18 #else
19
20 #include <fmt/core.h>
21 #include <array>
22 #include <cstddef>
23 #include <cstdint>
24 #include <functional>
25 #if _GLSL_STRUCT_HAS_GLM
26 #include <glm/glm.hpp>
27 #include <glm/gtc/matrix_access.hpp>
28 #include <glm/gtc/matrix_transform.hpp>
29 #include <glm/gtc/type_ptr.hpp>
30 #endif
31 #include <memory>
32 #include <mstd/mstd.hpp>
34 #include <pcre2cpp/pcre2cpp.hpp>
35 #endif
36 #include <string>
37 #include <type_traits>
38 #include <unordered_map>
39 #include <utility>
40 #include <vector>
42 #include <ranges>
43 #include <span>
44 #endif
45
46 #endif
47#endif
#define _GLSL_STRUCT_HAS_PARSER
check if user want to include parser functionality
Definition config.hpp:186
#define _GLSL_STRUCT_HAS_CXX20
check if compiler has c++ version greater or equal to c++20 and if user enabled c++20 features using ...
Definition config.hpp:142
#define _GLSL_STRUCT_HAS_CXX17
check if compiler has c++ version greater or equal to c++17
Definition config.hpp:130