bgfx/3rdparty/glslang/Test/310runtimeArray.vert
Branimir Karadžić 3a6a6c059d Updated glslang.
2018-04-07 09:50:59 -07:00

19 lines
314 B
GLSL

#version 310 es
precision highp float;
layout(location=0) out float o;
struct S { float f; };
buffer b1 { S s[]; };
buffer b2 { S s[]; } b2name;
buffer b3 { S s[]; } b3name[];
buffer b4 { S s[]; } b4name[4];
void main()
{
o = s[5].f;
o += b2name.s[6].f;
o += b3name[3].s[7].f;
o += b4name[2].s[8].f;
}