]> git.tdb.fi Git - libs/gl.git/commit
Handle expression replacement through TraversingVisitor
authorMikko Rasa <tdb@tdb.fi>
Tue, 9 Mar 2021 10:05:29 +0000 (12:05 +0200)
committerMikko Rasa <tdb@tdb.fi>
Tue, 9 Mar 2021 10:05:29 +0000 (12:05 +0200)
commit2a9f8f3803e1b57e0e5325454266d4e701b38cc5
treec018cda27a078ed2f7e7ea3b92f606e3463a6d41
parentdaff631cf87db75bcae616605e759d281258d9e4
Handle expression replacement through TraversingVisitor

There were several cases missing, like VariableResolver not handling
replacement of swizzles in return statements.  This way each of the
visitors can just concentrate on what they're actually doing.
source/glsl/generate.cpp
source/glsl/generate.h
source/glsl/optimize.cpp
source/glsl/optimize.h
source/glsl/visitor.cpp
source/glsl/visitor.h