2018-04-30 10:45:23 +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-30 10:45:23 +00:00
|
|
|
{
|
2018-06-12 15:41:35 +00:00
|
|
|
float4 FragColor [[color(0)]];
|
2018-04-30 10:45:23 +00:00
|
|
|
};
|
|
|
|
|
2018-06-12 15:41:35 +00:00
|
|
|
struct main0_in
|
2018-04-30 10:45:23 +00:00
|
|
|
{
|
2018-06-12 15:41:35 +00:00
|
|
|
float3 vUV [[user(locn0)]];
|
2018-04-30 10:45:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
fragment main0_out main0(main0_in in [[stage_in]], depth2d<float> uT [[texture(0)]], sampler uTSmplr [[sampler(0)]])
|
|
|
|
{
|
|
|
|
main0_out out = {};
|
|
|
|
out.FragColor = uT.gather_compare(uTSmplr, in.vUV.xy, in.vUV.z);
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|