2018-03-13 09:46:55 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
#include <simd/simd.h>
|
|
|
|
|
|
|
|
using namespace metal;
|
|
|
|
|
|
|
|
struct VOUT
|
|
|
|
{
|
|
|
|
float4 a;
|
|
|
|
};
|
|
|
|
|
2018-06-12 15:41:35 +00:00
|
|
|
struct main0_out
|
2018-03-13 09:46:55 +00:00
|
|
|
{
|
2018-06-12 15:41:35 +00:00
|
|
|
float4 FragColor [[color(0)]];
|
2018-03-13 09:46:55 +00:00
|
|
|
};
|
|
|
|
|
2018-06-12 15:41:35 +00:00
|
|
|
struct main0_in
|
2018-03-13 09:46:55 +00:00
|
|
|
{
|
2022-03-04 16:38:53 +00:00
|
|
|
float4 Clip_a [[user(locn0)]];
|
2018-03-13 09:46:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
fragment main0_out main0(main0_in in [[stage_in]])
|
|
|
|
{
|
|
|
|
main0_out out = {};
|
2018-09-13 12:42:05 +00:00
|
|
|
VOUT Clip = {};
|
2022-03-04 16:38:53 +00:00
|
|
|
Clip.a = in.Clip_a;
|
2018-09-17 11:51:02 +00:00
|
|
|
VOUT tmp = Clip;
|
2018-03-13 09:46:55 +00:00
|
|
|
tmp.a += float4(1.0);
|
|
|
|
out.FragColor = tmp.a;
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|