]> git.tdb.fi Git - libs/gl.git/commit - source/programcompiler.cpp
Reorder declarations in shaders
authorMikko Rasa <tdb@tdb.fi>
Fri, 2 Dec 2016 10:26:12 +0000 (12:26 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 2 Dec 2016 10:26:12 +0000 (12:26 +0200)
commit00be85f53c5bec0be00a7ed6271e1f5a38e0b534
tree05d08ed2e7fc7e92fd8238440b1e352812c4348c
parented06ec666e4b3dac21c4482c56e99bf7fd19b042
Reorder declarations in shaders

So that structs appear before variables and variables appear before
functions.  This ensures that the declarations stay visible if an
expression is moved to an earlier point while inlining functions.
source/programcompiler.cpp
source/programcompiler.h