diff options
author | Hans-Kristian Arntzen <post@arntzen-software.no> | 2019-03-14 12:29:34 +0300 |
---|---|---|
committer | Hans-Kristian Arntzen <post@arntzen-software.no> | 2019-03-15 13:01:27 +0300 |
commit | e47a77d596bde52b9818ea7c0dfb548736329d52 (patch) | |
tree | de95f526486c0a9cd8a07032ace28b088e2ab098 /spirv_cross.hpp | |
parent | ed55e0ac6d797a338e7c19dad785237f0efc4d86 (diff) |
MSL: Implement Metal 2.0 indirect argument buffers.
Diffstat (limited to 'spirv_cross.hpp')
-rw-r--r-- | spirv_cross.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/spirv_cross.hpp b/spirv_cross.hpp index 16ca1d05..851a227b 100644 --- a/spirv_cross.hpp +++ b/spirv_cross.hpp @@ -120,6 +120,7 @@ enum ExtendedDecorations SPIRVCrossDecorationPackedType, SPIRVCrossDecorationInterfaceMemberIndex, SPIRVCrossDecorationInterfaceOrigID, + SPIRVCrossDecorationArgumentBufferID }; class Compiler @@ -209,9 +210,6 @@ public: // or an empty string if no qualified alias exists const std::string &get_member_qualified_name(uint32_t type_id, uint32_t index) const; - // Sets the qualified member identifier for OpTypeStruct ID, member number "index". - void set_member_qualified_name(uint32_t type_id, uint32_t index, const std::string &name); - // Gets the decoration mask for a member of a struct, similar to get_decoration_mask. const Bitset &get_member_decoration_bitset(uint32_t id, uint32_t index) const; @@ -587,6 +585,10 @@ protected: // Gets the SPIR-V element type underlying an array variable. const SPIRType &get_variable_element_type(const SPIRVariable &var) const; + // Sets the qualified member identifier for OpTypeStruct ID, member number "index". + void set_member_qualified_name(uint32_t type_id, uint32_t index, const std::string &name); + void set_qualified_name(uint32_t id, const std::string &name); + // Returns if the given type refers to a sampled image. bool is_sampled_image_type(const SPIRType &type); |