2017-05-07 10:36:14 +00:00
|
|
|
#pragma clang diagnostic ignored "-Wmissing-prototypes"
|
|
|
|
|
|
|
|
#include <metal_stdlib>
|
|
|
|
#include <simd/simd.h>
|
|
|
|
|
|
|
|
using namespace metal;
|
|
|
|
|
|
|
|
struct main0_out
|
|
|
|
{
|
|
|
|
float4 FragColor [[color(0)]];
|
|
|
|
};
|
|
|
|
|
2019-09-17 19:11:19 +00:00
|
|
|
static inline __attribute__((always_inline))
|
|
|
|
float4 samp(thread const texture2d<float> t, thread const sampler s)
|
2017-05-07 10:36:14 +00:00
|
|
|
{
|
2020-07-23 03:03:11 +00:00
|
|
|
return t.sample(s, float2(0.5));
|
2017-05-07 10:36:14 +00:00
|
|
|
}
|
|
|
|
|
2019-06-21 10:44:33 +00:00
|
|
|
fragment main0_out main0(texture2d<float> uDepth [[texture(0)]], sampler uSampler [[sampler(0)]])
|
2017-05-07 10:36:14 +00:00
|
|
|
{
|
|
|
|
main0_out out = {};
|
|
|
|
out.FragColor = samp(uDepth, uSampler);
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|