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:
authorBill Hollings <bill.hollings@brenwill.com>2021-01-29 00:13:20 +0300
committerBill Hollings <bill.hollings@brenwill.com>2021-01-29 00:13:20 +0300
commit8e03cb60a5c3c2b4433fb205bf56e9e3e29a7c33 (patch)
treeafbe371323a1dec5ac31c0413c07b105476b3c41 /spirv_cross.hpp
parent84a41cd4883d6b1be180359bd95f41ddd8a948fd (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.hpp6
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
{