GPU: GLSL-C++ compilation stubs #4

Closed
Clément Foucault wants to merge 38 commits from glsl-cpp-stubs-2 into glsl-include

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit 20d11b10e4 - Show all commits

View File

@ -2,6 +2,10 @@
* *
* SPDX-License-Identifier: GPL-2.0-or-later */ * SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
#if defined(__cplusplus) && !defined(GPU_SHADER)
# include <type_traits> # include <type_traits>
template<typename T, int Sz> struct VecBase {}; template<typename T, int Sz> struct VecBase {};
@ -613,3 +617,5 @@ bool is_zero(vec4) {}
#define bool3_array(...) { __VA_ARGS__ } #define bool3_array(...) { __VA_ARGS__ }
#define bool4_array(...) { __VA_ARGS__ } #define bool4_array(...) { __VA_ARGS__ }
/* clang-format on */ /* clang-format on */
#endif