forked from blender/blender
GPU: Shader Create Info GLSL-C++ stubs #3
@ -69,34 +69,49 @@ GPU_SHADER_CREATE_INFO(workbench_shadow_debug)
|
||||
|
||||
#define WORKBENCH_SHADOW_VARIATIONS(common, prefix, suffix, ...) \
|
||||
GPU_SHADER_CREATE_INFO(prefix##_pass_manifold_no_caps##suffix) \
|
||||
.define("SHADOW_PASS") \
|
||||
.vertex_source("workbench_shadow_vert.glsl") ADDITIONAL_INFO_EXPAND(common, __VA_ARGS__) \
|
||||
.do_static_compilation(true); \
|
||||
DEFINE("SHADOW_PASS") \
|
||||
VERTEX_SOURCE("workbench_shadow_vert.glsl") \
|
||||
ADDITIONAL_INFO_EXPAND(common, __VA_ARGS__) \
|
||||
DO_STATIC_COMPILATION() \
|
||||
GPU_SHADER_CREATE_END() \
|
||||
\
|
||||
GPU_SHADER_CREATE_INFO(prefix##_pass_no_manifold_no_caps##suffix) \
|
||||
.define("SHADOW_PASS") \
|
||||
.define("DOUBLE_MANIFOLD") \
|
||||
.vertex_source("workbench_shadow_vert.glsl") ADDITIONAL_INFO_EXPAND(common, __VA_ARGS__) \
|
||||
.do_static_compilation(true); \
|
||||
DEFINE("SHADOW_PASS") \
|
||||
DEFINE("DOUBLE_MANIFOLD") \
|
||||
VERTEX_SOURCE("workbench_shadow_vert.glsl") \
|
||||
ADDITIONAL_INFO_EXPAND(common, __VA_ARGS__) \
|
||||
DO_STATIC_COMPILATION() \
|
||||
GPU_SHADER_CREATE_END() \
|
||||
\
|
||||
GPU_SHADER_CREATE_INFO(prefix##_fail_manifold_caps##suffix) \
|
||||
.define("SHADOW_FAIL") \
|
||||
.vertex_source("workbench_shadow_caps_vert.glsl") \
|
||||
ADDITIONAL_INFO_EXPAND(common, __VA_ARGS__) \
|
||||
.do_static_compilation(true); \
|
||||
DEFINE("SHADOW_FAIL") \
|
||||
VERTEX_SOURCE("workbench_shadow_caps_vert.glsl") \
|
||||
ADDITIONAL_INFO_EXPAND(common, __VA_ARGS__) \
|
||||
DO_STATIC_COMPILATION() \
|
||||
GPU_SHADER_CREATE_END() \
|
||||
\
|
||||
GPU_SHADER_CREATE_INFO(prefix##_fail_manifold_no_caps##suffix) \
|
||||
.define("SHADOW_FAIL") \
|
||||
.vertex_source("workbench_shadow_vert.glsl") ADDITIONAL_INFO_EXPAND(common, __VA_ARGS__) \
|
||||
.do_static_compilation(true); \
|
||||
DEFINE("SHADOW_FAIL") \
|
||||
VERTEX_SOURCE("workbench_shadow_vert.glsl") \
|
||||
ADDITIONAL_INFO_EXPAND(common, __VA_ARGS__) \
|
||||
DO_STATIC_COMPILATION() \
|
||||
GPU_SHADER_CREATE_END() \
|
||||
\
|
||||
GPU_SHADER_CREATE_INFO(prefix##_fail_no_manifold_caps##suffix) \
|
||||
.define("SHADOW_FAIL") \
|
||||
.define("DOUBLE_MANIFOLD") \
|
||||
.vertex_source("workbench_shadow_caps_vert.glsl") \
|
||||
ADDITIONAL_INFO_EXPAND(common, __VA_ARGS__) \
|
||||
.do_static_compilation(true); \
|
||||
DEFINE("SHADOW_FAIL") \
|
||||
DEFINE("DOUBLE_MANIFOLD") \
|
||||
VERTEX_SOURCE("workbench_shadow_caps_vert.glsl") \
|
||||
ADDITIONAL_INFO_EXPAND(common, __VA_ARGS__) \
|
||||
DO_STATIC_COMPILATION() \
|
||||
GPU_SHADER_CREATE_END() \
|
||||
\
|
||||
GPU_SHADER_CREATE_INFO(prefix##_fail_no_manifold_no_caps##suffix) \
|
||||
.define("SHADOW_FAIL") \
|
||||
.define("DOUBLE_MANIFOLD") \
|
||||
.vertex_source("workbench_shadow_vert.glsl") ADDITIONAL_INFO_EXPAND(common, __VA_ARGS__) \
|
||||
.do_static_compilation(true);
|
||||
DEFINE("SHADOW_FAIL") \
|
||||
DEFINE("DOUBLE_MANIFOLD") \
|
||||
VERTEX_SOURCE("workbench_shadow_vert.glsl") \
|
||||
ADDITIONAL_INFO_EXPAND(common, __VA_ARGS__) \
|
||||
DO_STATIC_COMPILATION() \
|
||||
GPU_SHADER_CREATE_END()
|
||||
|
||||
WORKBENCH_SHADOW_VARIATIONS(workbench_shadow_common, workbench_shadow, , workbench_shadow_no_debug)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user