]> git.tdb.fi Git - libs/gl.git/commit
Remove unused stages from shader programs
authorMikko Rasa <tdb@tdb.fi>
Fri, 11 Mar 2022 22:11:49 +0000 (00:11 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 11 Mar 2022 22:11:49 +0000 (00:11 +0200)
commit77973a48acbe29c2a64d43de7084574aaf7a26c4
tree43aacc628c3d0f2bcd1b379dd5a159c91935d0a3
parent88c401224220010cb71426fafc5173661c4d48a3
Remove unused stages from shader programs

A stage is deemed unused if it has no main function after optimization,
or if a SPIR-V entry point's interface variables all become unused during
specialization.
source/core/module.cpp
source/glsl/compiler.cpp