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, ...) \
|
#define WORKBENCH_SHADOW_VARIATIONS(common, prefix, suffix, ...) \
|
||||||
GPU_SHADER_CREATE_INFO(prefix##_pass_manifold_no_caps##suffix) \
|
GPU_SHADER_CREATE_INFO(prefix##_pass_manifold_no_caps##suffix) \
|
||||||
.define("SHADOW_PASS") \
|
DEFINE("SHADOW_PASS") \
|
||||||
.vertex_source("workbench_shadow_vert.glsl") ADDITIONAL_INFO_EXPAND(common, __VA_ARGS__) \
|
VERTEX_SOURCE("workbench_shadow_vert.glsl") \
|
||||||
.do_static_compilation(true); \
|
ADDITIONAL_INFO_EXPAND(common, __VA_ARGS__) \
|
||||||
|
DO_STATIC_COMPILATION() \
|
||||||
|
GPU_SHADER_CREATE_END() \
|
||||||
|
\
|
||||||
GPU_SHADER_CREATE_INFO(prefix##_pass_no_manifold_no_caps##suffix) \
|
GPU_SHADER_CREATE_INFO(prefix##_pass_no_manifold_no_caps##suffix) \
|
||||||
.define("SHADOW_PASS") \
|
DEFINE("SHADOW_PASS") \
|
||||||
.define("DOUBLE_MANIFOLD") \
|
DEFINE("DOUBLE_MANIFOLD") \
|
||||||
.vertex_source("workbench_shadow_vert.glsl") ADDITIONAL_INFO_EXPAND(common, __VA_ARGS__) \
|
VERTEX_SOURCE("workbench_shadow_vert.glsl") \
|
||||||
.do_static_compilation(true); \
|
ADDITIONAL_INFO_EXPAND(common, __VA_ARGS__) \
|
||||||
|
DO_STATIC_COMPILATION() \
|
||||||
|
GPU_SHADER_CREATE_END() \
|
||||||
|
\
|
||||||
GPU_SHADER_CREATE_INFO(prefix##_fail_manifold_caps##suffix) \
|
GPU_SHADER_CREATE_INFO(prefix##_fail_manifold_caps##suffix) \
|
||||||
.define("SHADOW_FAIL") \
|
DEFINE("SHADOW_FAIL") \
|
||||||
.vertex_source("workbench_shadow_caps_vert.glsl") \
|
VERTEX_SOURCE("workbench_shadow_caps_vert.glsl") \
|
||||||
ADDITIONAL_INFO_EXPAND(common, __VA_ARGS__) \
|
ADDITIONAL_INFO_EXPAND(common, __VA_ARGS__) \
|
||||||
.do_static_compilation(true); \
|
DO_STATIC_COMPILATION() \
|
||||||
|
GPU_SHADER_CREATE_END() \
|
||||||
|
\
|
||||||
GPU_SHADER_CREATE_INFO(prefix##_fail_manifold_no_caps##suffix) \
|
GPU_SHADER_CREATE_INFO(prefix##_fail_manifold_no_caps##suffix) \
|
||||||
.define("SHADOW_FAIL") \
|
DEFINE("SHADOW_FAIL") \
|
||||||
.vertex_source("workbench_shadow_vert.glsl") ADDITIONAL_INFO_EXPAND(common, __VA_ARGS__) \
|
VERTEX_SOURCE("workbench_shadow_vert.glsl") \
|
||||||
.do_static_compilation(true); \
|
ADDITIONAL_INFO_EXPAND(common, __VA_ARGS__) \
|
||||||
|
DO_STATIC_COMPILATION() \
|
||||||
|
GPU_SHADER_CREATE_END() \
|
||||||
|
\
|
||||||
GPU_SHADER_CREATE_INFO(prefix##_fail_no_manifold_caps##suffix) \
|
GPU_SHADER_CREATE_INFO(prefix##_fail_no_manifold_caps##suffix) \
|
||||||
.define("SHADOW_FAIL") \
|
DEFINE("SHADOW_FAIL") \
|
||||||
.define("DOUBLE_MANIFOLD") \
|
DEFINE("DOUBLE_MANIFOLD") \
|
||||||
.vertex_source("workbench_shadow_caps_vert.glsl") \
|
VERTEX_SOURCE("workbench_shadow_caps_vert.glsl") \
|
||||||
ADDITIONAL_INFO_EXPAND(common, __VA_ARGS__) \
|
ADDITIONAL_INFO_EXPAND(common, __VA_ARGS__) \
|
||||||
.do_static_compilation(true); \
|
DO_STATIC_COMPILATION() \
|
||||||
|
GPU_SHADER_CREATE_END() \
|
||||||
|
\
|
||||||
GPU_SHADER_CREATE_INFO(prefix##_fail_no_manifold_no_caps##suffix) \
|
GPU_SHADER_CREATE_INFO(prefix##_fail_no_manifold_no_caps##suffix) \
|
||||||
.define("SHADOW_FAIL") \
|
DEFINE("SHADOW_FAIL") \
|
||||||
.define("DOUBLE_MANIFOLD") \
|
DEFINE("DOUBLE_MANIFOLD") \
|
||||||
.vertex_source("workbench_shadow_vert.glsl") ADDITIONAL_INFO_EXPAND(common, __VA_ARGS__) \
|
VERTEX_SOURCE("workbench_shadow_vert.glsl") \
|
||||||
.do_static_compilation(true);
|
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)
|
WORKBENCH_SHADOW_VARIATIONS(workbench_shadow_common, workbench_shadow, , workbench_shadow_no_debug)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user