]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/spirv.h
Store required capabilities for SPIR-V builtin functions
[libs/gl.git] / source / glsl / spirv.h
index add5a967d3659d525901101cb25e3712601a2f03..c023adae9af3cc5e75a637298afc8f98fd244fc7 100644 (file)
@@ -31,6 +31,7 @@ private:
                char extension[13];
                Word opcode;
                UInt8 arg_order[4];
+               Word capability;
                void (SpirVGenerator::*handler)(FunctionCall &, const std::vector<Id> &);
        };
 
@@ -113,6 +114,7 @@ private:
        Id import_extension(const std::string &);
        Id get_id(Node &) const;
        Id allocate_id(Node &, Id);
+       Id allocate_forward_id(Node &);
        Id write_constant(Id, Word, bool);
        static ConstantKey get_constant_key(Id, const Variant &value);
        Id get_constant_id(Id, const Variant &value);