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

reserved-function-identifier.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: 5c8ec371e301b291bbd238aa1b66d38fc571c7ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma clang diagnostic ignored "-Wmissing-prototypes"

#include <metal_stdlib>
#include <simd/simd.h>

using namespace metal;

struct main0_out
{
    float FragColor [[color(0)]];
};

static inline __attribute__((always_inline))
float _mat3(thread const float& a)
{
    return a + 1.0;
}

static inline __attribute__((always_inline))
float _RESERVED_IDENTIFIER_FIXUP_gl_Foo(thread const int& a)
{
    return float(a) + 1.0;
}

fragment main0_out main0()
{
    main0_out out = {};
    float param = 2.0;
    int param_1 = 4;
    out.FragColor = _mat3(param) + _RESERVED_IDENTIFIER_FIXUP_gl_Foo(param_1);
    return out;
}