SPIRV-Cross/reference/opt/shaders/asm/frag/loop-body-dominator-continue-access.asm.frag

73 lines
1.8 KiB
GLSL
Raw Normal View History

2017-12-05 16:44:52 +00:00
#version 450
layout(binding = 0, std140) uniform Foo
{
layout(row_major) mat4 lightVP[64];
uint shadowCascadesNum;
int test;
} _11;
layout(location = 0) in vec3 fragWorld;
layout(location = 0) out int _entryPointOutput;
int _240;
2018-03-24 03:16:18 +00:00
void main()
2017-12-05 16:44:52 +00:00
{
bool _246;
uint _227;
int _237;
2018-03-24 03:16:18 +00:00
for (;;)
2017-12-05 16:44:52 +00:00
{
_227 = 0u;
bool _164;
for (;;)
2017-12-05 16:44:52 +00:00
{
_164 = _227 < _11.shadowCascadesNum;
if (_164)
2018-03-24 03:16:18 +00:00
{
mat4 _228;
for (;;)
{
if (_11.test == 0)
{
_228 = mat4(vec4(0.5, 0.0, 0.0, 0.0), vec4(0.0, 0.5, 0.0, 0.0), vec4(0.0, 0.0, 0.5, 0.0), vec4(0.0, 0.0, 0.0, 1.0));
break;
}
_228 = mat4(vec4(1.0, 0.0, 0.0, 0.0), vec4(0.0, 1.0, 0.0, 0.0), vec4(0.0, 0.0, 1.0, 0.0), vec4(0.0, 0.0, 0.0, 1.0));
break;
}
vec4 _177 = (_228 * _11.lightVP[_227]) * vec4(fragWorld, 1.0);
float _179 = _177.z;
float _186 = _177.x;
float _188 = _177.y;
if ((((_179 >= 0.0) && (_179 <= 1.0)) && (max(_186, _188) <= 1.0)) && (min(_186, _188) >= 0.0))
{
_237 = int(_227);
break;
}
else
{
_227++;
continue;
}
_227++;
continue;
2018-03-24 03:16:18 +00:00
}
else
{
_237 = _240;
2017-12-05 16:44:52 +00:00
break;
}
}
_246 = _164 ? true : false;
if (_246)
2017-12-05 16:44:52 +00:00
{
2018-03-24 03:16:18 +00:00
break;
2017-12-05 16:44:52 +00:00
}
break;
2017-12-05 16:44:52 +00:00
}
_entryPointOutput = _246 ? _237 : (-1);
2017-12-05 16:44:52 +00:00
}