mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-09-16 08:02:45 +00:00
The new vk-gl-cts tests have uncovered a whole bunch of FXC issues, which have been filed as tint bugs. Bug: tint:998 Bug: tint:1080 Bug: tint:1038 Bug: tint:1081 Bug: tint:1082 Bug: tint:1083 Change-Id: I0d14370f94647dfd9c7088e0b782c3b415c78ee7 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/60211 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com>
39 lines
807 B
HLSL
39 lines
807 B
HLSL
static float4 color = float4(0.0f, 0.0f, 0.0f, 0.0f);
|
|
|
|
float3 drawShape_vf2_(inout float2 pos) {
|
|
bool c3 = false;
|
|
bool x_35_phi = false;
|
|
const float x_32 = pos.y;
|
|
const bool x_33 = (x_32 < 1.0f);
|
|
c3 = x_33;
|
|
x_35_phi = x_33;
|
|
{
|
|
for(; x_35_phi; x_35_phi = false) {
|
|
return float3(1.0f, 1.0f, 1.0f);
|
|
}
|
|
}
|
|
return float3(1.0f, 1.0f, 1.0f);
|
|
}
|
|
|
|
void main_1() {
|
|
float2 param = float2(0.0f, 0.0f);
|
|
param = float2(1.0f, 1.0f);
|
|
const float3 x_29 = drawShape_vf2_(param);
|
|
color = float4(1.0f, 0.0f, 0.0f, 1.0f);
|
|
return;
|
|
}
|
|
|
|
struct main_out {
|
|
float4 color_1;
|
|
};
|
|
struct tint_symbol {
|
|
float4 color_1 : SV_Target0;
|
|
};
|
|
|
|
tint_symbol main() {
|
|
main_1();
|
|
const main_out tint_symbol_1 = {color};
|
|
const tint_symbol tint_symbol_2 = {tint_symbol_1.color_1};
|
|
return tint_symbol_2;
|
|
}
|