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

70 lines
1.7 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
{
uint _227;
int _236;
2018-03-24 03:16:18 +00:00
for (;;)
2017-12-05 16:44:52 +00:00
{
_227 = 0u;
bool _231;
int _237;
for (;;)
2017-12-05 16:44:52 +00:00
{
if (_227 < _11.shadowCascadesNum)
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);
_231 = true;
break;
}
_227++;
continue;
2018-03-24 03:16:18 +00:00
}
else
{
_237 = _240;
_231 = false;
2017-12-05 16:44:52 +00:00
break;
}
}
if (_231)
2017-12-05 16:44:52 +00:00
{
_236 = _237;
2018-03-24 03:16:18 +00:00
break;
2017-12-05 16:44:52 +00:00
}
_236 = -1;
break;
2017-12-05 16:44:52 +00:00
}
_entryPointOutput = _236;
2017-12-05 16:44:52 +00:00
}