bgfx/3rdparty/glsl-optimizer/tests/fragment/opt-deadcodestruct-in.txt

12 lines
154 B
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
struct foo {
float used;
float unused;
};
void main() {
float f = 1.0;
foo s;
s.used = f;
s.unused = f;
gl_FragColor = vec4(s.used);
}