]> git.tdb.fi Git - libs/gl.git/commit
Transform interface block contents into structs
authorMikko Rasa <tdb@tdb.fi>
Mon, 8 Mar 2021 13:06:01 +0000 (15:06 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 8 Mar 2021 15:28:21 +0000 (17:28 +0200)
commit041ba4b1acd55337239c5ce24cc310118c621206
tree1e1c1837cc1878c407b32d06aa185c7260cafe87
parentcd01b904990d306eadd120f306b1d0ceb4d8f5c8
Transform interface block contents into structs

This allows handling them in expression trees like everything else.  It
also helps with SPIR-V, which requires interface blocks to have struct
types.
15 files changed:
source/glsl/compatibility.cpp
source/glsl/compiler.cpp
source/glsl/debug.cpp
source/glsl/generate.cpp
source/glsl/generate.h
source/glsl/optimize.cpp
source/glsl/optimize.h
source/glsl/output.cpp
source/glsl/output.h
source/glsl/parser.cpp
source/glsl/syntax.cpp
source/glsl/syntax.h
source/glsl/validate.cpp
source/glsl/validate.h
source/glsl/visitor.cpp