dawn-cmake/test/vk-gl-cts/graphicsfuzz/unreachable-loops-in-switch/0.spvasm.expected.hlsl

60 lines
1.1 KiB
HLSL
Raw Normal View History

2021-07-23 13:10:12 +00:00
static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f);
void main_1() {
int i = 0;
float data[1] = (float[1])0;
x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f);
i = 0;
{
for(; (i < 1); i = (i + 1)) {
const float x_40 = data[i];
const float x_42 = data[0];
if ((x_40 < x_42)) {
if (false) {
if ((float(i) >= 1.0f)) {
}
}
switch(0) {
case 1: {
while (true) {
if (true) {
} else {
break;
}
}
while (true) {
}
/* fallthrough */
{
data[0] = 2.0f;
}
break;
2021-07-23 13:10:12 +00:00
}
case 0: {
data[0] = 2.0f;
break;
}
default: {
break;
}
}
}
}
}
return;
}
struct main_out {
float4 x_GLF_color_1;
};
struct tint_symbol {
float4 x_GLF_color_1 : SV_Target0;
};
tint_symbol main() {
main_1();
const main_out tint_symbol_1 = {x_GLF_color};
const tint_symbol tint_symbol_2 = {tint_symbol_1.x_GLF_color_1};
return tint_symbol_2;
}