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

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

using namespace metal;

struct main0_out
{
    float gl_FragDepth [[depth(any)]];
};

fragment main0_out main0()
{
    main0_out out = {};
    out.gl_FragDepth = 0.5;
    return out;
}