Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Kristian Arntzen <post@arntzen-software.no>2020-03-26 13:21:23 +0300
committerHans-Kristian Arntzen <post@arntzen-software.no>2020-03-26 15:38:27 +0300
commitb8905bbd95b2b25c1765f201d0dc2b137300de88 (patch)
tree353f7b285d2ce710f482276d4f320b69072ef669 /spirv_cross_c.cpp
parent871c85d7f0edc6b613e3959bc51d13bfbc2fe2df (diff)
Add support for forcefully zero-initialized variables.
Useful to better support certain platforms which require all variables to be initialized to something.
Diffstat (limited to 'spirv_cross_c.cpp')
-rw-r--r--spirv_cross_c.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/spirv_cross_c.cpp b/spirv_cross_c.cpp
index 3b1139f3..ead44691 100644
--- a/spirv_cross_c.cpp
+++ b/spirv_cross_c.cpp
@@ -423,6 +423,9 @@ spvc_result spvc_compiler_options_set_uint(spvc_compiler_options options, spvc_c
case SPVC_COMPILER_OPTION_ENABLE_STORAGE_IMAGE_QUALIFIER_DEDUCTION:
options->glsl.enable_storage_image_qualifier_deduction = value != 0;
break;
+ case SPVC_COMPILER_OPTION_FORCE_ZERO_INITIALIZED_VARIABLES:
+ options->glsl.force_zero_initialized_variables = value != 0;
+ break;
case SPVC_COMPILER_OPTION_GLSL_SUPPORT_NONZERO_BASE_INSTANCE:
options->glsl.vertex.support_nonzero_base_instance = value != 0;