Parcourir la source

Updated spirv-cross.

Бранимир Караџић il y a 4 ans
Parent
commit
56e3c5e867
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6 0
      3rdparty/spirv-cross/spirv_cross.hpp

+ 6 - 0
3rdparty/spirv-cross/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
 	{