]> git.tdb.fi Git - libs/gl.git/commit
Further refactor block and scope management
authorMikko Rasa <tdb@tdb.fi>
Sun, 21 Feb 2021 03:12:28 +0000 (05:12 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 21 Feb 2021 03:13:42 +0000 (05:13 +0200)
commit99719790df8a1215465a68c7b1d87a495bff87eb
tree18aba11b3068df1ebbaed741ef1d271207e7f200
parent48fa4e32b654aa1f2107caf266c3bdda9cc74847
Further refactor block and scope management

TraversingVisitor now provides a current_block variable and block know
their parent block so checking if we're in the toplevel block is easy.
source/glsl/compiler.cpp
source/glsl/generate.cpp
source/glsl/generate.h
source/glsl/optimize.cpp
source/glsl/optimize.h
source/glsl/syntax.cpp
source/glsl/syntax.h
source/glsl/visitor.cpp
source/glsl/visitor.h