blob: def5ca8f9c62c63886ec8998b3db7967c98f43d6 [file] [log] [blame]
John Stiles3679cd12020-12-09 16:22:12 -05001#include <metal_stdlib>
2#include <simd/simd.h>
3using namespace metal;
4struct Inputs {
5 float a;
6};
7struct Outputs {
8 float4 sk_FragColor [[color(0)]];
9};
10
11fragment Outputs fragmentMain(Inputs _in [[stage_in]], bool _frontFacing [[front_facing]], float4 _fragCoord [[position]]) {
John Stilesf7410bd2021-01-19 13:07:55 -050012 Outputs _out;
13 _out.sk_FragColor.x = float(isnan(_in.a) ? 1 : 0);
14 return _out;
John Stiles3679cd12020-12-09 16:22:12 -050015}