GPU: Shader Create Info GLSL-C++ stubs #3

Closed
Clément Foucault wants to merge 90 commits from create-info-cpp-macros into glsl-include

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
3 changed files with 11 additions and 0 deletions
Showing only changes of commit 6e3c1b27c8 - Show all commits

View File

@ -61,6 +61,7 @@ namespace blender::gpu::shader {
}
# define GPU_SHADER_CREATE_END() }
# define SHADER_LIBRARY_CREATE_INFO(_info) using namespace _info;
# define VERTEX_SHADER_CREATE_INFO(_info) \
using namespace ::gl_VertexShader; \
using namespace _info::gl_VertexShader; \

View File

@ -2549,3 +2549,8 @@ mat3x4 MAT3x4(mat2 m)
#define bool3_array(...) { __VA_ARGS__ }
#define bool4_array(...) { __VA_ARGS__ }
/* clang-format on */
#define SHADER_LIBRARY_CREATE_INFO(a)
#define VERTEX_SHADER_CREATE_INFO(a)
#define FRAGMENT_SHADER_CREATE_INFO(a)
#define COMPUTE_SHADER_CREATE_INFO(a)

View File

@ -121,3 +121,8 @@ bool is_zero(vec4 A)
#define bool2_array bool2[]
#define bool3_array bool3[]
#define bool4_array bool4[]
#define SHADER_LIBRARY_CREATE_INFO(a)
#define VERTEX_SHADER_CREATE_INFO(a)
#define FRAGMENT_SHADER_CREATE_INFO(a)
#define COMPUTE_SHADER_CREATE_INFO(a)