X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fspirv.h;h=addf8970315c5fb68e6d05d31c55c9b467ebf6c5;hp=59c7b50b0cc45fede654eff5d3580840c5eecf1a;hb=0d5ff7918d50092d8cf2e1b8f7af1d7d29b6eb9b;hpb=e98188ff6c9bba9761b71f2a69f3be7eb89ba3da diff --git a/source/glsl/spirv.h b/source/glsl/spirv.h index 59c7b50b..addf8970 100644 --- a/source/glsl/spirv.h +++ b/source/glsl/spirv.h @@ -70,6 +70,7 @@ private: bool operator<(const ConstantKey &) const; }; + Features features; Stage *stage = 0; FunctionDeclaration *current_function = 0; std::vector interface_layouts; @@ -106,7 +107,7 @@ private: public: SpirVGenerator(); - void apply(Module &); + void apply(Module &, const Features &); const std::vector &get_code() const { return content.code; } private: