diff options
author | Hans-Kristian Arntzen <post@arntzen-software.no> | 2021-06-28 12:10:55 +0300 |
---|---|---|
committer | Hans-Kristian Arntzen <post@arntzen-software.no> | 2021-06-28 13:23:44 +0300 |
commit | 8216e87f02d010bc0e0233addf01541e6332b126 (patch) | |
tree | 81412a5c4a3e5cebe042834f413276b189fbf8aa /spirv_hlsl.hpp | |
parent | 9cdeefb5e322fc26b5fed70795fe79725648df1f (diff) |
Handle SPIR-V 1.4 selection constructs.
Fix bug in to_trivial_mix_op, where we made a pre-1.4 assumption that
component count of selector is equal to value component count.
Diffstat (limited to 'spirv_hlsl.hpp')
-rw-r--r-- | spirv_hlsl.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spirv_hlsl.hpp b/spirv_hlsl.hpp index f46b1868..70e6cd87 100644 --- a/spirv_hlsl.hpp +++ b/spirv_hlsl.hpp @@ -369,6 +369,8 @@ private: // Returns true for BuiltInSampleMask because gl_SampleMask[] is an array in SPIR-V, but SV_Coverage is a scalar in HLSL. bool builtin_translates_to_nonarray(spv::BuiltIn builtin) const override; + + std::vector<TypeID> composite_selection_workaround_types; }; } // namespace SPIRV_CROSS_NAMESPACE |