X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fvalidate.h;h=a09f9f643002b11ecae0bfba1237d07d76121cd9;hp=b47a9911d95c6a147034f1937243f34bd69ebca9;hb=76cc18518fc8b0b4fa11fda153e7d9b3899ed112;hpb=2e9d0beaafa8220d8a917749c8a12beaf4718729 diff --git a/source/glsl/validate.h b/source/glsl/validate.h index b47a9911..a09f9f64 100644 --- a/source/glsl/validate.h +++ b/source/glsl/validate.h @@ -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); @@ -174,8 +175,6 @@ public: void apply(Stage &s) { stage = &s; s.content.visit(*this); } private: - int get_location(const Layout &); - virtual void visit(VariableDeclaration &); virtual void visit(FunctionDeclaration &) { } };