dawn-cmake/test/vk-gl-cts/graphicsfuzz/uv-value-comparison-as-boolean/0.wgsl.expected.hlsl

49 lines
886 B
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() {
bool c1 = false;
float2 uv = float2(0.0f, 0.0f);
int i = 0;
bool x_37 = false;
bool x_37_phi = false;
int x_9_phi = 0;
const float x_34 = uv.y;
const bool x_35 = (x_34 < 0.25f);
c1 = x_35;
i = 0;
x_37_phi = x_35;
x_9_phi = 0;
while (true) {
x_37 = x_37_phi;
if ((x_9_phi < 1)) {
} else {
break;
}
x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f);
return;
{
i = (i + 1);
x_37_phi = false;
x_9_phi = 0;
}
}
if (x_37) {
return;
}
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;
}