]> git.tdb.fi Git - libs/gl.git/commit
Don't ignore structs entirely in UnusedVariableRemover
authorMikko Rasa <tdb@tdb.fi>
Mon, 12 Apr 2021 15:00:34 +0000 (18:00 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 12 Apr 2021 15:00:34 +0000 (18:00 +0300)
commit72a02f2f3f1c454aa670b256262d7bc0541222e3
treefd72a3013b237f154a5881f3762f1f40b8458442
parent4c11957c4e26b2c369f0399c85bafcb6eb58edd4
Don't ignore structs entirely in UnusedVariableRemover

Structs may have arrays in them, and array sizes may have references to
specialization constants which must be kept.
source/glsl/optimize.cpp
source/glsl/optimize.h
tests/glsl/specialized_array_in_struct.glsl [new file with mode: 0644]