forked from blender/blender
GPU: GLSL-C++ compilation stubs #4
@ -2,6 +2,10 @@
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
|
||||
#pragma once
|
||||
|
||||
#if defined(__cplusplus) && !defined(GPU_SHADER)
|
||||
|
||||
# include <type_traits>
|
||||
|
||||
template<typename T, int Sz> struct VecBase {};
|
||||
@ -613,3 +617,5 @@ bool is_zero(vec4) {}
|
||||
#define bool3_array(...) { __VA_ARGS__ }
|
||||
#define bool4_array(...) { __VA_ARGS__ }
|
||||
/* clang-format on */
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user