blob: 944df9ec7dabf206bbe364db9f8de330f5699eb0 [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(b0) {
uint4 x_5[1];
};
void main_1() {
int m = 0;
x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f);
float x_30 = asfloat(x_5[0u].x);
float x_32 = asfloat(x_5[0u].y);
if ((x_30 > x_32)) {
{
while(true) {
{
if (true) { break; }
}
continue;
}
}
m = 1;
{
while(true) {
if (true) {
} else {
break;
}
x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f);
{
}
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:50: error: Loop must have break.
Validation failed.
tint executable returned error: exit status 1