xref: /aosp_15_r20/external/skia/tests/sksl/shared/NumberCasts.hlsl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1static float4 sk_FragColor;
2
3struct SPIRV_Cross_Output
4{
5    float4 sk_FragColor : SV_Target0;
6};
7
8float4 main(float2 _18)
9{
10    bool3 B = bool3(false, false, false);
11    B.x = true;
12    B.y = true;
13    B.z = true;
14    float3 F = 0.0f.xxx;
15    F.x = 1.230000019073486328125f;
16    F.y = 0.0f;
17    F.z = 1.0f;
18    int3 I = int3(0, 0, 0);
19    I.x = 1;
20    I.y = 1;
21    I.z = 1;
22    bool _64 = false;
23    if (B.x)
24    {
25        _64 = B.y;
26    }
27    else
28    {
29        _64 = false;
30    }
31    bool _69 = false;
32    if (_64)
33    {
34        _69 = B.z;
35    }
36    else
37    {
38        _69 = false;
39    }
40    return float4((F.x * F.y) * F.z, float(_69), 0.0f, float((I.x * I.y) * I.z));
41}
42
43void frag_main()
44{
45    float2 _14 = 0.0f.xx;
46    sk_FragColor = main(_14);
47}
48
49SPIRV_Cross_Output main()
50{
51    frag_main();
52    SPIRV_Cross_Output stage_output;
53    stage_output.sk_FragColor = sk_FragColor;
54    return stage_output;
55}
56