SPIRV-Cross/reference/opt/shaders/comp/torture-loop.comp
Ryan Harrison cf1bf1c6ae Update external/ to SPIR-V 1.5
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.
2019-09-18 16:04:27 -04:00

41 lines
772 B
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;
layout(binding = 1, std430) writeonly buffer SSBO2
{
vec4 out_data[];
} _89;
void main()
{
vec4 _101;
_101 = _24.in_data[gl_GlobalInvocationID.x];
for (int _95 = 0; (_95 + 1) < 10; )
{
_101 *= 2.0;
_95 += 2;
continue;
}
vec4 _100;
_100 = _101;
vec4 _105;
for (uint _96 = 0u; _96 < 16u; _100 = _105, _96++)
{
_105 = _100;
for (uint _102 = 0u; _102 < 30u; )
{
_105 = _24.mvp * _105;
_102++;
continue;
}
}
_89.out_data[gl_GlobalInvocationID.x] = _100;
}