Welcome to mirror list, hosted at ThFree Co, Russian Federation.

sample-mask.fixed-sample-mask.frag « frag « shaders-msl « opt « reference - github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 76306b5ade866b56e1e01e8e3444af16ad8891ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <metal_stdlib>
#include <simd/simd.h>

using namespace metal;

struct main0_out
{
    float4 FragColor [[color(0)]];
    uint gl_SampleMask [[sample_mask]];
};

fragment main0_out main0()
{
    main0_out out = {};
    out.FragColor = float4(1.0);
    out.gl_SampleMask = 0;
    out.gl_SampleMask &= 0x22;
    return out;
}