]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/validate.h
Add basic Vulkan support to the shader compiler
[libs/gl.git] / source / glsl / validate.h
index b47a9911d95c6a147034f1937243f34bd69ebca9..558803ff8277b74902f3dcff65d2cdc454526c50 100644 (file)
@@ -39,13 +39,14 @@ private:
                FUNCTION
        };
 
+       Features features;
        ScopeType scope = GLOBAL;
        InterfaceLayout *iface_layout = 0;
        InterfaceBlock *iface_block = 0;
        VariableDeclaration *variable = 0;
 
 public:
-       void apply(Stage &s) { stage = &s; s.content.visit(*this); }
+       void apply(Stage &, const Features &);
 
 private:
        static const char *describe_variable(ScopeType);