Basically after preprocessing, if there is an statement that access a variable,
we should mark its static_use as true, no matter if that statement will be
executed or not.
Two applications
1) fails link if a varying is statically used in frag shader but not declared
in vertex one.
2) when compute packing and enforce packing restrictions for uniforms and
varyings, we only need to consider statically used variables (although kbr
suggests we should count in all variables in case some drivers are not spec
compliant)
Original issue reported on code.google.com by z...@google.com on 20 Aug 2013 at 10:22
Original issue reported on code.google.com by
z...@google.com
on 20 Aug 2013 at 10:22