SPIRV-Cross/reference/opt/shaders-msl/asm/frag/unreachable.asm.frag

37 lines
680 B
GLSL
Raw Normal View History

2018-01-15 08:39:15 +00:00
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct main0_out
2018-01-15 08:39:15 +00:00
{
float4 FragColor [[color(0)]];
2018-01-15 08:39:15 +00:00
};
struct main0_in
2018-01-15 08:39:15 +00:00
{
int counter [[user(locn0)]];
2018-01-15 08:39:15 +00:00
};
fragment main0_out main0(main0_in in [[stage_in]])
{
main0_out out = {};
bool _29;
for (;;)
2018-01-15 08:39:15 +00:00
{
_29 = in.counter == 10;
if (_29)
2018-01-15 08:39:15 +00:00
{
break;
}
else
{
break;
}
}
bool4 _35 = bool4(_29);
out.FragColor = float4(_35.x ? float4(10.0).x : float4(30.0).x, _35.y ? float4(10.0).y : float4(30.0).y, _35.z ? float4(10.0).z : float4(30.0).z, _35.w ? float4(10.0).w : float4(30.0).w);
2018-01-15 08:39:15 +00:00
return out;
}