9da21c24a4
This CL rolls the GLSLang and SPIRV-Tools dependencies to tip-of-tree and updates the tests as required.
83 lines
1.3 KiB
Plaintext
83 lines
1.3 KiB
Plaintext
#version 310 es
|
|
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
|
|
layout(binding = 0, std430) readonly buffer SSBO
|
|
{
|
|
mat4 mvp;
|
|
vec4 in_data[];
|
|
} _24;
|
|
|
|
void main()
|
|
{
|
|
uint ident = gl_GlobalInvocationID.x;
|
|
vec4 idat = _24.in_data[ident];
|
|
int k = 0;
|
|
uint i = 0u;
|
|
if (idat.y == 20.0)
|
|
{
|
|
do
|
|
{
|
|
k *= 2;
|
|
i++;
|
|
} while (i < ident);
|
|
}
|
|
switch (k)
|
|
{
|
|
case 10:
|
|
{
|
|
for (;;)
|
|
{
|
|
i++;
|
|
if (i > 10u)
|
|
{
|
|
break;
|
|
}
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
default:
|
|
{
|
|
for (;;)
|
|
{
|
|
i += 2u;
|
|
if (i > 20u)
|
|
{
|
|
break;
|
|
}
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
while (k < 10)
|
|
{
|
|
idat *= 2.0;
|
|
k++;
|
|
}
|
|
for (uint i_1 = 0u; i_1 < 16u; i_1++, k++)
|
|
{
|
|
for (uint j = 0u; j < 30u; j++)
|
|
{
|
|
idat = _24.mvp * idat;
|
|
}
|
|
}
|
|
k = 0;
|
|
for (;;)
|
|
{
|
|
k++;
|
|
if (k > 10)
|
|
{
|
|
k += 2;
|
|
}
|
|
else
|
|
{
|
|
k += 3;
|
|
continue;
|
|
}
|
|
k += 10;
|
|
continue;
|
|
}
|
|
}
|
|
|