26 lines
490 B
Plaintext
26 lines
490 B
Plaintext
|
#version 310 es
|
||
|
precision mediump float;
|
||
|
precision highp int;
|
||
|
|
||
|
layout(constant_id = 1) const float a = 1.0;
|
||
|
layout(constant_id = 2) const float b = 2.0;
|
||
|
layout(constant_id = 3) const int c = 3;
|
||
|
layout(constant_id = 4) const int d = 4;
|
||
|
|
||
|
struct Foo
|
||
|
{
|
||
|
float elems[(d + 2)];
|
||
|
};
|
||
|
|
||
|
layout(location = 0) out vec4 FragColor;
|
||
|
|
||
|
float _146[(c + 2)];
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
float vec0[(c + 3)][8];
|
||
|
Foo foo;
|
||
|
FragColor = ((vec4(a + b) + vec4(vec0[0][0])) + vec4(_146[0])) + vec4(foo.elems[c]);
|
||
|
}
|
||
|
|