diff options
author | Bill Hollings <bill.hollings@brenwill.com> | 2021-01-29 00:13:20 +0300 |
---|---|---|
committer | Bill Hollings <bill.hollings@brenwill.com> | 2021-01-29 00:13:20 +0300 |
commit | 8e03cb60a5c3c2b4433fb205bf56e9e3e29a7c33 (patch) | |
tree | afbe371323a1dec5ac31c0413c07b105476b3c41 /spirv_cross.hpp | |
parent | 84a41cd4883d6b1be180359bd95f41ddd8a948fd (diff) |
Expose position invariance.
Used with MSL to determine whether to compile with invariance preserved.
Diffstat (limited to 'spirv_cross.hpp')
-rw-r--r-- | spirv_cross.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spirv_cross.hpp b/spirv_cross.hpp index c29ce6b4..944e855b 100644 --- a/spirv_cross.hpp +++ b/spirv_cross.hpp @@ -498,6 +498,12 @@ public: // The most common use here is to check if a buffer is readonly or writeonly. Bitset get_buffer_block_flags(VariableID id) const; + // Returns whether the position output is invariant + bool is_position_invariant() const + { + return position_invariant; + } + protected: const uint32_t *stream(const Instruction &instr) const { |