2016-11-18 15:45:11 +00:00
|
|
|
#version 310 es
|
|
|
|
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
|
|
|
|
|
|
layout(binding = 0, std430) buffer SSBO
|
|
|
|
{
|
|
|
|
float data;
|
|
|
|
} _11;
|
|
|
|
|
|
|
|
void test()
|
|
|
|
{
|
2016-12-05 09:22:54 +00:00
|
|
|
if (_11.data != 0.0)
|
2016-11-18 15:45:11 +00:00
|
|
|
{
|
|
|
|
float tmp = 10.0;
|
|
|
|
_11.data = tmp;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
float tmp_1 = 15.0;
|
|
|
|
_11.data = tmp_1;
|
|
|
|
}
|
2016-12-05 09:22:54 +00:00
|
|
|
if (_11.data != 0.0)
|
2016-11-18 15:45:11 +00:00
|
|
|
{
|
|
|
|
float e;
|
2016-12-05 09:22:54 +00:00
|
|
|
if (_11.data != 5.0)
|
2016-11-18 15:45:11 +00:00
|
|
|
{
|
2016-12-05 09:22:54 +00:00
|
|
|
if (_11.data != 6.0)
|
2016-11-18 15:45:11 +00:00
|
|
|
{
|
|
|
|
e = 10.0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
e = 20.0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
switch (int(_11.data))
|
|
|
|
{
|
|
|
|
case 0:
|
|
|
|
{
|
|
|
|
float tmp_2 = 20.0;
|
|
|
|
_11.data = tmp_2;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case 1:
|
|
|
|
{
|
|
|
|
float tmp_3 = 30.0;
|
|
|
|
_11.data = tmp_3;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
float f;
|
|
|
|
switch (int(_11.data))
|
|
|
|
{
|
|
|
|
case 0:
|
|
|
|
{
|
|
|
|
f = 30.0;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case 1:
|
|
|
|
{
|
|
|
|
f = 40.0;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
float h;
|
2016-12-16 12:24:49 +00:00
|
|
|
for (int i = 0; i < 20; i++, h += 10.0)
|
2016-11-18 15:45:11 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
_11.data = h;
|
2017-08-02 09:58:24 +00:00
|
|
|
float m;
|
2016-11-18 15:45:11 +00:00
|
|
|
do
|
|
|
|
{
|
2016-12-05 09:22:54 +00:00
|
|
|
} while (m != 20.0);
|
2016-11-18 15:45:11 +00:00
|
|
|
_11.data = m;
|
|
|
|
}
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
test();
|
|
|
|
}
|
|
|
|
|