cf1bf1c6ae
Rolled the hashes used for glslang, SPIRV-Tools, and SPIRV-Headers to HEAD, which includes the update to 1.5. Added passing '--amb' to glslang, so I didn't have to explicitly set bindings in a large number of test shaders that currently don't, and now glslang considers them invalid. Marked all shaders that no longer pass spirv-val as .invalid.
45 lines
651 B
Plaintext
45 lines
651 B
Plaintext
#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;
|
|
|
|
float _187;
|
|
|
|
void main()
|
|
{
|
|
if (_11.data != 0.0)
|
|
{
|
|
_11.data = 10.0;
|
|
}
|
|
else
|
|
{
|
|
_11.data = 15.0;
|
|
}
|
|
switch (int(_11.data))
|
|
{
|
|
case 0:
|
|
{
|
|
_11.data = 20.0;
|
|
break;
|
|
}
|
|
case 1:
|
|
{
|
|
_11.data = 30.0;
|
|
break;
|
|
}
|
|
}
|
|
float _184;
|
|
_184 = _187;
|
|
for (int _183 = 0; _183 < 20; )
|
|
{
|
|
_184 += 10.0;
|
|
_183++;
|
|
continue;
|
|
}
|
|
_11.data = _184;
|
|
}
|
|
|