Debian Codegraph @

third_party/spirv-cross/reference/opt/shaders-msl/frag/disable-frag-output.frag-output.frag

raw
1 #include <metal_stdlib>
2 #include <simd/simd.h>
3
4 using namespace metal;
5
6 struct main0_out
7 {
8 float4 buf1 [[color(1)]];
9 float4 buf3 [[color(3)]];
10 float4 buf6 [[color(6)]];
11 float4 buf7 [[color(7)]];
12 };
13
14 fragment main0_out main0()
15 {
16 float4 buf0;
17 float4 buf2;
18 float4 buf4;
19 float4 buf5;
20 float gl_FragDepth;
21 int gl_FragStencilRefARB;
22 main0_out out = {};
23 buf0 = float4(0.0, 0.0, 0.0, 1.0);
24 out.buf1 = float4(1.0, 0.0, 0.0, 1.0);
25 buf2 = float4(0.0, 1.0, 0.0, 1.0);
26 out.buf3 = float4(0.0, 0.0, 1.0, 1.0);
27 buf4 = float4(1.0, 0.0, 1.0, 0.5);
28 buf5 = float4(0.25);
29 out.buf6 = float4(0.75);
30 out.buf7 = float4(1.0);
31 gl_FragDepth = 0.89999997615814208984375;
32 gl_FragStencilRefARB = uint(127);
33 return out;
34 }
35