diff options
author | Hans-Kristian Arntzen <post@arntzen-software.no> | 2020-04-20 10:48:20 +0300 |
---|---|---|
committer | Hans-Kristian Arntzen <post@arntzen-software.no> | 2020-04-20 10:58:40 +0300 |
commit | ebf463674d0b79474dcdb9b32366b5aa52364ec5 (patch) | |
tree | c030898e7041868df3298ab00030f6761a889b02 /spirv_cross_c.cpp | |
parent | aa5fbc004b2be8ae7541196ad9adf8eb75562bc0 (diff) |
MSL: Allow removing clip distance user varyings.
Only safe if user knows that subsequent shader stage will not read clip
distance.
Diffstat (limited to 'spirv_cross_c.cpp')
-rw-r--r-- | spirv_cross_c.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spirv_cross_c.cpp b/spirv_cross_c.cpp index e6f67125..20109888 100644 --- a/spirv_cross_c.cpp +++ b/spirv_cross_c.cpp @@ -627,6 +627,10 @@ spvc_result spvc_compiler_options_set_uint(spvc_compiler_options options, spvc_c case SPVC_COMPILER_OPTION_MSL_ENABLE_FRAG_STENCIL_REF_BUILTIN: options->msl.enable_frag_stencil_ref_builtin = value != 0; break; + + case SPVC_COMPILER_OPTION_MSL_ENABLE_CLIP_DISTANCE_USER_VARYING: + options->msl.enable_clip_distance_user_varying = value != 0; + break; #endif default: |