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

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

using namespace metal;

struct main0_out
{
    float4 color_out [[color(0)]];
    float gl_FragDepth [[depth(less)]];
};

fragment main0_out main0()
{
    main0_out out = {};
    out.color_out = float4(1.0, 0.0, 0.0, 1.0);
    out.gl_FragDepth = 0.699999988079071044921875;
    return out;
}