devwaker / angleproject

Automatically exported from code.google.com/p/angleproject
Other
0 stars 0 forks source link

Implement a new variable attribute: static_use #465

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
https://codereview.appspot.com/13158043/

Original comment by z...@google.com on 22 Aug 2013 at 11:22