blob: eed58a8321f0184e5b5b40bc00b34067ff2b9ba3 [file] [log] [blame]
SKIP: INVALID
struct main_out {
float4 x_GLF_color_1;
};
struct main_outputs {
float4 main_out_x_GLF_color_1 : SV_Target0;
};
static float4 x_GLF_color = (0.0f).xxxx;
cbuffer cbuffer_x_5 : register(b1) {
uint4 x_5[2];
};
cbuffer cbuffer_x_7 : register(b2) {
uint4 x_7[1];
};
cbuffer cbuffer_x_10 : register(b0) {
uint4 x_10[2];
};
void main_1() {
int i = int(0);
float x_38 = asfloat(x_5[0u].x);
x_GLF_color = float4(x_38, x_38, x_38, x_38);
float x_41 = asfloat(x_7[0u].x);
float x_43 = asfloat(x_5[0u].x);
if ((x_41 > x_43)) {
{
while(true) {
float x_53 = asfloat(x_5[1u].x);
x_GLF_color = float4(x_53, x_53, x_53, x_53);
{
if (false) { break; }
}
continue;
}
}
} else {
{
while(true) {
{
while(true) {
if (true) {
} else {
break;
}
int x_13 = asint(x_10[1u].x);
i = x_13;
{
while(true) {
int x_14 = i;
int x_15 = asint(x_10[0u].x);
if ((x_14 < x_15)) {
} else {
break;
}
float x_73 = asfloat(x_5[1u].x);
float x_75 = asfloat(x_5[0u].x);
float x_77 = asfloat(x_5[0u].x);
float x_79 = asfloat(x_5[1u].x);
x_GLF_color = float4(x_73, x_75, x_77, x_79);
{
int x_16 = i;
i = (x_16 + int(1));
}
continue;
}
}
break;
}
}
{
float x_82 = asfloat(x_7[0u].x);
float x_84 = asfloat(x_5[0u].x);
if (!((x_82 > x_84))) { break; }
}
continue;
}
}
}
}
main_out main_inner() {
main_1();
main_out v = {x_GLF_color};
return v;
}
main_outputs main() {
main_out v_1 = main_inner();
main_outputs v_2 = {v_1.x_GLF_color_1};
return v_2;
}
DXC validation failure:
error: validation errors
hlsl.hlsl:88: error: Loop must have break.
Validation failed.
tint executable returned error: exit status 1