]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/spirv.h
Use OriginUpperLeft execution mode on Vulkan as required by the spec
[libs/gl.git] / source / glsl / spirv.h
index 59c7b50b0cc45fede654eff5d3580840c5eecf1a..addf8970315c5fb68e6d05d31c55c9b467ebf6c5 100644 (file)
@@ -70,6 +70,7 @@ private:
                bool operator<(const ConstantKey &) const;
        };
 
+       Features features;
        Stage *stage = 0;
        FunctionDeclaration *current_function = 0;
        std::vector<const InterfaceLayout *> interface_layouts;
@@ -106,7 +107,7 @@ private:
 public:
        SpirVGenerator();
 
-       void apply(Module &);
+       void apply(Module &, const Features &);
        const std::vector<Word> &get_code() const { return content.code; }
 
 private: