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

subpass-input.decoration-binding.framebuffer-fetch.msl23.frag « frag « shaders-msl-no-opt « reference - github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9108927ee4116c6f77e1e1a06a51b682cfc17d3a (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
{
    float4 FragColor [[color(0)]];
};

fragment main0_out main0(float4 uSub [[color(1)]], texture2d<float> uTex [[texture(9)]], sampler uSampler [[sampler(8)]])
{
    main0_out out = {};
    out.FragColor = uSub + uTex.sample(uSampler, float2(0.5));
    return out;
}