]> git.tdb.fi Git - libs/gl.git/commit
Unify handling of variables and interface blocks in the GLSL compiler
authorMikko Rasa <tdb@tdb.fi>
Sat, 27 Nov 2021 19:25:03 +0000 (21:25 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sat, 27 Nov 2021 19:25:03 +0000 (21:25 +0200)
commit03b2ea5c9c611cfa5f02afb49ed7e05743e691b4
treed6a99dc8b82984d057902439b78f06664c5a97bc
parent4ecc965177df174ed2d26cfedf24665c8879acda
Unify handling of variables and interface blocks in the GLSL compiler

In SPIR-V interface blocks are just variables with a struct type marked
as block.  Treating them this way in the AST reduces duplcation a fair
bit.
24 files changed:
source/glsl/debug.cpp
source/glsl/debug.h
source/glsl/finalize.cpp
source/glsl/finalize.h
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/parser.h
source/glsl/reflect.cpp
source/glsl/reflect.h
source/glsl/resolve.cpp
source/glsl/resolve.h
source/glsl/spirv.cpp
source/glsl/spirv.h
source/glsl/syntax.cpp
source/glsl/syntax.h
source/glsl/validate.cpp
source/glsl/validate.h
source/glsl/visitor.cpp
source/glsl/visitor.h