X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Foptimize.h;h=b8ab3201ccc54aa74fc603fce30caf8b5bd6b683;hb=57ff0b07aca38aee593a85831ba600b77e3b7a7b;hp=1eb0464e7daea97d654576c15792a13e764d8c27;hpb=24e4eea282917c3f6e4e16a2825372da64133e35;p=libs%2Fgl.git diff --git a/source/glsl/optimize.h b/source/glsl/optimize.h index 1eb0464e..b8ab3201 100644 --- a/source/glsl/optimize.h +++ b/source/glsl/optimize.h @@ -161,6 +161,7 @@ private: struct AggregateMember { const VariableDeclaration *declaration = 0; + unsigned index = 0; RefPtr initializer; std::vector *> references; }; @@ -194,6 +195,7 @@ private: virtual void visit(StructDeclaration &) { } virtual void visit(VariableDeclaration &); virtual void visit(InterfaceBlock &) { } + virtual void visit(FunctionDeclaration &); }; /** Replaces expressions consisting entirely of literals with the results of