bgfx/3rdparty/glsl-optimizer/tests/fragment/struct-array-var-index-in.txt

10 lines
138 B
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
struct str {
float params[3];
};
void main() {
str s;
for (int i = 0; i < 3; ++i)
s.params[i] = 1.0;
gl_FragColor = vec4(0.0);
}