blob: a4f99312144f99f7b8be43101ed218e4fcad050b [file] [log] [blame]
Brian Osman8c595fe2021-03-15 14:58:57 -04001struct Uniforms {
John Stiles3679cd12020-12-09 16:22:12 -05002 float a;
3};
Brian Osman8c595fe2021-03-15 14:58:57 -04004struct Inputs {
5};
John Stiles3679cd12020-12-09 16:22:12 -05006struct Outputs {
7 float4 sk_FragColor [[color(0)]];
8};
9
Brian Osman8c595fe2021-03-15 14:58:57 -040010fragment Outputs fragmentMain(Inputs _in [[stage_in]], constant Uniforms& _uniforms [[buffer(0)]], bool _frontFacing [[front_facing]], float4 _fragCoord [[position]]) {
John Stilesf7410bd2021-01-19 13:07:55 -050011 Outputs _out;
John Stiles37279172021-01-21 22:24:28 -050012 (void)_out;
Brian Osman8c595fe2021-03-15 14:58:57 -040013 _out.sk_FragColor.x = float(isnan(_uniforms.a) ? 1 : 0);
John Stilesf7410bd2021-01-19 13:07:55 -050014 return _out;
John Stiles3679cd12020-12-09 16:22:12 -050015}