Debian Codegraph @

third_party/spirv-cross/reference/opt/shaders-msl/frag/stencil-export.msl21.frag

raw
1 #include <metal_stdlib>
2 #include <simd/simd.h>
3
4 using namespace metal;
5
6 struct main0_out
7 {
8 float4 MRT0 [[color(0)]];
9 float4 MRT1 [[color(1)]];
10 uint gl_FragStencilRefARB [[stencil]];
11 };
12
13 fragment main0_out main0()
14 {
15 main0_out out = {};
16 out.MRT0 = float4(1.0);
17 out.MRT1 = float4(1.0, 0.0, 1.0, 1.0);
18 out.gl_FragStencilRefARB = uint(100);
19 out.gl_FragStencilRefARB = uint(int(out.gl_FragStencilRefARB) + 10);
20 return out;
21 }
22