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

modf-access-tracking-function.frag « frag « shaders-msl « opt « reference - github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 612dd4e92d1d0a51c983a8151494edf9714501c4 (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
#include <metal_stdlib>
#include <simd/simd.h>

using namespace metal;

struct main0_out
{
    float4 vo0 [[color(0)]];
    float4 vo1 [[color(1)]];
};

struct main0_in
{
    float4 v [[user(locn0)]];
};

fragment main0_out main0(main0_in in [[stage_in]])
{
    main0_out out = {};
    float4 _25 = modf(in.v, out.vo1);
    out.vo0 = _25;
    return out;
}