2018-04-27 07:34:13 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
#include <simd/simd.h>
|
|
|
|
|
|
|
|
using namespace metal;
|
|
|
|
|
2018-06-12 15:41:35 +00:00
|
|
|
struct main0_out
|
2018-04-27 07:34:13 +00:00
|
|
|
{
|
2018-06-12 15:41:35 +00:00
|
|
|
float4 FragColor [[color(0)]];
|
2018-04-27 07:34:13 +00:00
|
|
|
};
|
|
|
|
|
2018-06-12 15:41:35 +00:00
|
|
|
struct main0_in
|
2018-04-27 07:34:13 +00:00
|
|
|
{
|
2018-06-12 15:41:35 +00:00
|
|
|
float2 vUV [[user(locn0)]];
|
2018-04-27 07:34:13 +00:00
|
|
|
};
|
|
|
|
|
2019-06-21 10:44:33 +00:00
|
|
|
fragment main0_out main0(main0_in in [[stage_in]], texture2d<float> uTex [[texture(0)]], sampler uSampler [[sampler(0)]])
|
2018-04-27 07:34:13 +00:00
|
|
|
{
|
|
|
|
main0_out out = {};
|
|
|
|
out.FragColor = uTex.sample(uSampler, in.vUV);
|
|
|
|
out.FragColor += uTex.sample(uSampler, in.vUV, int2(1));
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|