2021-03-16 14:40:11 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
#include <simd/simd.h>
|
|
|
|
using namespace metal;
|
2020-12-04 16:58:26 +00:00
|
|
|
struct Inputs {
|
|
|
|
};
|
|
|
|
struct Outputs {
|
2021-10-30 02:34:51 +00:00
|
|
|
half4 sk_FragColor [[color(0)]];
|
2020-12-04 16:58:26 +00:00
|
|
|
};
|
2021-10-30 02:34:51 +00:00
|
|
|
void out_half_vh(thread half& v);
|
|
|
|
void _skOutParamHelper0_out_half_vh(thread half& h) {
|
|
|
|
half _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_half_vh(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
h = _var0;
|
|
|
|
}
|
2021-10-30 02:34:51 +00:00
|
|
|
void out_half2_vh2(thread half2& v);
|
|
|
|
void _skOutParamHelper1_out_half2_vh2(thread half2& h2) {
|
|
|
|
half2 _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_half2_vh2(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
h2 = _var0;
|
|
|
|
}
|
2021-10-30 02:34:51 +00:00
|
|
|
void out_half3_vh3(thread half3& v);
|
|
|
|
void _skOutParamHelper2_out_half3_vh3(thread half3& h3) {
|
|
|
|
half3 _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_half3_vh3(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
h3 = _var0;
|
|
|
|
}
|
2021-10-30 02:34:51 +00:00
|
|
|
void out_half4_vh4(thread half4& v);
|
|
|
|
void _skOutParamHelper3_out_half4_vh4(thread half4& h4) {
|
|
|
|
half4 _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_half4_vh4(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
h4 = _var0;
|
|
|
|
}
|
2021-10-30 02:34:51 +00:00
|
|
|
void out_half_vh(thread half& v);
|
|
|
|
void _skOutParamHelper4_out_half_vh(thread half3& h3) {
|
|
|
|
half _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_half_vh(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
h3.y = _var0;
|
|
|
|
}
|
2021-10-30 02:34:51 +00:00
|
|
|
void out_half2_vh2(thread half2& v);
|
|
|
|
void _skOutParamHelper5_out_half2_vh2(thread half3& h3) {
|
|
|
|
half2 _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_half2_vh2(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
h3.xz = _var0;
|
|
|
|
}
|
2021-10-30 02:34:51 +00:00
|
|
|
void out_half4_vh4(thread half4& v);
|
|
|
|
void _skOutParamHelper6_out_half4_vh4(thread half4& h4) {
|
|
|
|
half4 _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_half4_vh4(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
h4.zwxy = _var0;
|
|
|
|
}
|
2021-10-30 02:34:51 +00:00
|
|
|
void out_pair_vhh(thread half& v1, thread half& v2);
|
|
|
|
void _skOutParamHelper7_out_pair_vhh(thread half& h, thread half& h1) {
|
|
|
|
half _var0;
|
|
|
|
half _var1;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_pair_vhh(_var0, _var1);
|
2021-02-13 18:58:01 +00:00
|
|
|
h = _var0;
|
|
|
|
h1 = _var1;
|
|
|
|
}
|
2021-10-30 02:34:51 +00:00
|
|
|
void out_pair_vhh(thread half& v1, thread half& v2);
|
|
|
|
void _skOutParamHelper8_out_pair_vhh(thread half& h, thread half&) {
|
|
|
|
half _var0;
|
|
|
|
half _var1;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_pair_vhh(_var0, _var1);
|
2021-02-13 18:58:01 +00:00
|
|
|
h = _var0;
|
|
|
|
h = _var1;
|
|
|
|
}
|
2021-10-30 02:34:51 +00:00
|
|
|
void out_pair_vhh(thread half& v1, thread half& v2);
|
|
|
|
void _skOutParamHelper9_out_pair_vhh(thread half2& h2, thread half2&) {
|
|
|
|
half _var0;
|
|
|
|
half _var1;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_pair_vhh(_var0, _var1);
|
2021-02-13 18:58:01 +00:00
|
|
|
h2.x = _var0;
|
|
|
|
h2.y = _var1;
|
|
|
|
}
|
2021-10-30 02:34:51 +00:00
|
|
|
void out_pair_vhh(thread half& v1, thread half& v2);
|
|
|
|
void _skOutParamHelper10_out_pair_vhh(thread half2& h2, thread half2&) {
|
|
|
|
half _var0;
|
|
|
|
half _var1;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_pair_vhh(_var0, _var1);
|
2021-02-13 18:58:01 +00:00
|
|
|
h2.x = _var0;
|
|
|
|
h2.x = _var1;
|
|
|
|
}
|
2021-10-30 02:34:51 +00:00
|
|
|
void out_pair_vhh(thread half& v1, thread half& v2);
|
|
|
|
void _skOutParamHelper11_out_pair_vhh(thread half2& h2, thread half3& h3) {
|
|
|
|
half _var0;
|
|
|
|
half _var1;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_pair_vhh(_var0, _var1);
|
2021-02-13 18:58:01 +00:00
|
|
|
h2.x = _var0;
|
|
|
|
h3.x = _var1;
|
|
|
|
}
|
2021-10-30 02:34:51 +00:00
|
|
|
void out_half2x2_vh22(thread half2x2& v);
|
|
|
|
void _skOutParamHelper12_out_half2x2_vh22(thread half2x2& h2x2) {
|
|
|
|
half2x2 _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_half2x2_vh22(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
h2x2 = _var0;
|
|
|
|
}
|
2021-10-30 02:34:51 +00:00
|
|
|
void out_half3x3_vh33(thread half3x3& v);
|
|
|
|
void _skOutParamHelper13_out_half3x3_vh33(thread half3x3& h3x3) {
|
|
|
|
half3x3 _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_half3x3_vh33(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
h3x3 = _var0;
|
|
|
|
}
|
2021-10-30 02:34:51 +00:00
|
|
|
void out_half4x4_vh44(thread half4x4& v);
|
|
|
|
void _skOutParamHelper14_out_half4x4_vh44(thread half4x4& h4x4) {
|
|
|
|
half4x4 _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_half4x4_vh44(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
h4x4 = _var0;
|
|
|
|
}
|
2021-10-30 02:34:51 +00:00
|
|
|
void out_half3_vh3(thread half3& v);
|
|
|
|
void _skOutParamHelper15_out_half3_vh3(thread half3x3& h3x3) {
|
|
|
|
half3 _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_half3_vh3(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
h3x3[1] = _var0;
|
|
|
|
}
|
2021-10-30 02:34:51 +00:00
|
|
|
void out_half4_vh4(thread half4& v);
|
|
|
|
void _skOutParamHelper16_out_half4_vh4(thread half4x4& h4x4) {
|
|
|
|
half4 _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_half4_vh4(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
h4x4[3].zwxy = _var0;
|
|
|
|
}
|
2021-10-30 02:34:51 +00:00
|
|
|
void out_half2_vh2(thread half2& v);
|
|
|
|
void _skOutParamHelper17_out_half2_vh2(thread half2x2& h2x2) {
|
|
|
|
half2 _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_half2_vh2(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
h2x2[0] = _var0;
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_int_vi(thread int& v);
|
|
|
|
void _skOutParamHelper18_out_int_vi(thread int& i) {
|
2020-12-09 17:35:48 +00:00
|
|
|
int _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_int_vi(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
i = _var0;
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_int2_vi2(thread int2& v);
|
|
|
|
void _skOutParamHelper19_out_int2_vi2(thread int2& i2) {
|
2020-12-09 17:35:48 +00:00
|
|
|
int2 _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_int2_vi2(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
i2 = _var0;
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_int3_vi3(thread int3& v);
|
|
|
|
void _skOutParamHelper20_out_int3_vi3(thread int3& i3) {
|
2020-12-09 17:35:48 +00:00
|
|
|
int3 _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_int3_vi3(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
i3 = _var0;
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_int4_vi4(thread int4& v);
|
|
|
|
void _skOutParamHelper21_out_int4_vi4(thread int4& i4) {
|
2020-12-09 17:35:48 +00:00
|
|
|
int4 _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_int4_vi4(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
i4 = _var0;
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_int3_vi3(thread int3& v);
|
|
|
|
void _skOutParamHelper22_out_int3_vi3(thread int4& i4) {
|
2020-12-09 17:35:48 +00:00
|
|
|
int3 _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_int3_vi3(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
i4.xyz = _var0;
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_float_vf(thread float& v);
|
|
|
|
void _skOutParamHelper23_out_float_vf(thread float& f) {
|
2020-12-09 17:35:48 +00:00
|
|
|
float _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_float_vf(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
f = _var0;
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_float2_vf2(thread float2& v);
|
|
|
|
void _skOutParamHelper24_out_float2_vf2(thread float2& f2) {
|
2020-12-09 17:35:48 +00:00
|
|
|
float2 _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_float2_vf2(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
f2 = _var0;
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_float3_vf3(thread float3& v);
|
|
|
|
void _skOutParamHelper25_out_float3_vf3(thread float3& f3) {
|
2020-12-09 17:35:48 +00:00
|
|
|
float3 _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_float3_vf3(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
f3 = _var0;
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_float4_vf4(thread float4& v);
|
|
|
|
void _skOutParamHelper26_out_float4_vf4(thread float4& f4) {
|
2020-12-09 17:35:48 +00:00
|
|
|
float4 _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_float4_vf4(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
f4 = _var0;
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_float2_vf2(thread float2& v);
|
|
|
|
void _skOutParamHelper27_out_float2_vf2(thread float3& f3) {
|
2020-12-09 17:35:48 +00:00
|
|
|
float2 _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_float2_vf2(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
f3.xy = _var0;
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_float_vf(thread float& v);
|
|
|
|
void _skOutParamHelper28_out_float_vf(thread float2& f2) {
|
2020-12-09 17:35:48 +00:00
|
|
|
float _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_float_vf(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
f2.x = _var0;
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_float2x2_vf22(thread float2x2& v);
|
|
|
|
void _skOutParamHelper29_out_float2x2_vf22(thread float2x2& f2x2) {
|
2020-12-09 17:35:48 +00:00
|
|
|
float2x2 _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_float2x2_vf22(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
f2x2 = _var0;
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_float3x3_vf33(thread float3x3& v);
|
|
|
|
void _skOutParamHelper30_out_float3x3_vf33(thread float3x3& f3x3) {
|
2020-12-09 17:35:48 +00:00
|
|
|
float3x3 _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_float3x3_vf33(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
f3x3 = _var0;
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_float4x4_vf44(thread float4x4& v);
|
|
|
|
void _skOutParamHelper31_out_float4x4_vf44(thread float4x4& f4x4) {
|
2020-12-09 17:35:48 +00:00
|
|
|
float4x4 _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_float4x4_vf44(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
f4x4 = _var0;
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_float_vf(thread float& v);
|
|
|
|
void _skOutParamHelper32_out_float_vf(thread float2x2& f2x2) {
|
2020-12-09 17:35:48 +00:00
|
|
|
float _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_float_vf(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
f2x2[0].x = _var0;
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_float4_vf4(thread float4& v);
|
|
|
|
void _skOutParamHelper33_out_float4_vf4(thread float4x4& f4x4) {
|
2020-12-09 17:35:48 +00:00
|
|
|
float4 _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_float4_vf4(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
f4x4[1] = _var0;
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_bool_vb(thread bool& v);
|
|
|
|
void _skOutParamHelper34_out_bool_vb(thread bool& b) {
|
2020-12-09 17:35:48 +00:00
|
|
|
bool _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_bool_vb(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
b = _var0;
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_bool2_vb2(thread bool2& v);
|
|
|
|
void _skOutParamHelper35_out_bool2_vb2(thread bool2& b2) {
|
2020-12-09 17:35:48 +00:00
|
|
|
bool2 _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_bool2_vb2(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
b2 = _var0;
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_bool3_vb3(thread bool3& v);
|
|
|
|
void _skOutParamHelper36_out_bool3_vb3(thread bool3& b3) {
|
2020-12-09 17:35:48 +00:00
|
|
|
bool3 _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_bool3_vb3(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
b3 = _var0;
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_bool4_vb4(thread bool4& v);
|
|
|
|
void _skOutParamHelper37_out_bool4_vb4(thread bool4& b4) {
|
2020-12-09 17:35:48 +00:00
|
|
|
bool4 _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_bool4_vb4(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
b4 = _var0;
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_bool2_vb2(thread bool2& v);
|
|
|
|
void _skOutParamHelper38_out_bool2_vb2(thread bool4& b4) {
|
2020-12-09 17:35:48 +00:00
|
|
|
bool2 _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_bool2_vb2(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
b4.xw = _var0;
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_bool_vb(thread bool& v);
|
|
|
|
void _skOutParamHelper39_out_bool_vb(thread bool3& b3) {
|
2020-12-09 17:35:48 +00:00
|
|
|
bool _var0;
|
2021-03-22 15:57:41 +00:00
|
|
|
out_bool_vb(_var0);
|
2020-12-09 17:35:48 +00:00
|
|
|
b3.z = _var0;
|
|
|
|
}
|
2021-10-30 02:34:51 +00:00
|
|
|
void out_half_vh(thread half& v) {
|
|
|
|
v = 1.0h;
|
2020-12-04 16:58:26 +00:00
|
|
|
}
|
2021-10-30 02:34:51 +00:00
|
|
|
void out_half2_vh2(thread half2& v) {
|
|
|
|
v = half2(2.0h);
|
2020-12-04 16:58:26 +00:00
|
|
|
}
|
2021-10-30 02:34:51 +00:00
|
|
|
void out_half3_vh3(thread half3& v) {
|
|
|
|
v = half3(3.0h);
|
2020-12-04 16:58:26 +00:00
|
|
|
}
|
2021-10-30 02:34:51 +00:00
|
|
|
void out_half4_vh4(thread half4& v) {
|
|
|
|
v = half4(4.0h);
|
2020-12-04 16:58:26 +00:00
|
|
|
}
|
2021-10-30 02:34:51 +00:00
|
|
|
void out_half2x2_vh22(thread half2x2& v) {
|
|
|
|
v = half2x2(2.0h);
|
2020-12-04 16:58:26 +00:00
|
|
|
}
|
2021-10-30 02:34:51 +00:00
|
|
|
void out_half3x3_vh33(thread half3x3& v) {
|
|
|
|
v = half3x3(3.0h);
|
2020-12-04 16:58:26 +00:00
|
|
|
}
|
2021-10-30 02:34:51 +00:00
|
|
|
void out_half4x4_vh44(thread half4x4& v) {
|
|
|
|
v = half4x4(4.0h);
|
2020-12-04 16:58:26 +00:00
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_int_vi(thread int& v) {
|
2020-12-04 16:58:26 +00:00
|
|
|
v = 1;
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_int2_vi2(thread int2& v) {
|
2020-12-04 16:58:26 +00:00
|
|
|
v = int2(2);
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_int3_vi3(thread int3& v) {
|
2020-12-04 16:58:26 +00:00
|
|
|
v = int3(3);
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_int4_vi4(thread int4& v) {
|
2020-12-04 16:58:26 +00:00
|
|
|
v = int4(4);
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_float_vf(thread float& v) {
|
2020-12-04 16:58:26 +00:00
|
|
|
v = 1.0;
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_float2_vf2(thread float2& v) {
|
2020-12-04 16:58:26 +00:00
|
|
|
v = float2(2.0);
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_float3_vf3(thread float3& v) {
|
2020-12-04 16:58:26 +00:00
|
|
|
v = float3(3.0);
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_float4_vf4(thread float4& v) {
|
2020-12-04 16:58:26 +00:00
|
|
|
v = float4(4.0);
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_float2x2_vf22(thread float2x2& v) {
|
2020-12-04 16:58:26 +00:00
|
|
|
v = float2x2(2.0);
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_float3x3_vf33(thread float3x3& v) {
|
2020-12-04 16:58:26 +00:00
|
|
|
v = float3x3(3.0);
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_float4x4_vf44(thread float4x4& v) {
|
2020-12-04 16:58:26 +00:00
|
|
|
v = float4x4(4.0);
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_bool_vb(thread bool& v) {
|
2020-12-04 16:58:26 +00:00
|
|
|
v = true;
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_bool2_vb2(thread bool2& v) {
|
2020-12-04 16:58:26 +00:00
|
|
|
v = bool2(false);
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_bool3_vb3(thread bool3& v) {
|
2020-12-04 16:58:26 +00:00
|
|
|
v = bool3(true);
|
|
|
|
}
|
2021-03-22 15:57:41 +00:00
|
|
|
void out_bool4_vb4(thread bool4& v) {
|
2020-12-04 16:58:26 +00:00
|
|
|
v = bool4(false);
|
|
|
|
}
|
2021-10-30 02:34:51 +00:00
|
|
|
void out_pair_vhh(thread half& v1, thread half& v2) {
|
|
|
|
v1 = 1.0h;
|
|
|
|
v2 = 2.0h;
|
2021-02-13 18:58:01 +00:00
|
|
|
}
|
2020-12-04 16:58:26 +00:00
|
|
|
fragment Outputs fragmentMain(Inputs _in [[stage_in]], bool _frontFacing [[front_facing]], float4 _fragCoord [[position]]) {
|
2021-01-19 18:07:55 +00:00
|
|
|
Outputs _out;
|
2021-01-22 03:24:28 +00:00
|
|
|
(void)_out;
|
2021-10-30 02:34:51 +00:00
|
|
|
half h;
|
2021-03-22 15:57:41 +00:00
|
|
|
_skOutParamHelper0_out_half_vh(h);
|
2021-10-30 02:34:51 +00:00
|
|
|
half2 h2;
|
2021-03-22 15:57:41 +00:00
|
|
|
_skOutParamHelper1_out_half2_vh2(h2);
|
2021-10-30 02:34:51 +00:00
|
|
|
half3 h3;
|
2021-03-22 15:57:41 +00:00
|
|
|
_skOutParamHelper2_out_half3_vh3(h3);
|
2021-10-30 02:34:51 +00:00
|
|
|
half4 h4;
|
2021-03-22 15:57:41 +00:00
|
|
|
_skOutParamHelper3_out_half4_vh4(h4);
|
|
|
|
_skOutParamHelper4_out_half_vh(h3);
|
|
|
|
_skOutParamHelper5_out_half2_vh2(h3);
|
|
|
|
_skOutParamHelper6_out_half4_vh4(h4);
|
2021-10-30 02:34:51 +00:00
|
|
|
_out.sk_FragColor = half4(h, h2.x, h3.x, h4.x);
|
|
|
|
half h1;
|
2021-03-22 15:57:41 +00:00
|
|
|
_skOutParamHelper7_out_pair_vhh(h, h1);
|
|
|
|
_skOutParamHelper8_out_pair_vhh(h, h);
|
|
|
|
_skOutParamHelper9_out_pair_vhh(h2, h2);
|
|
|
|
_skOutParamHelper10_out_pair_vhh(h2, h2);
|
|
|
|
_skOutParamHelper11_out_pair_vhh(h2, h3);
|
2021-10-30 02:34:51 +00:00
|
|
|
half2x2 h2x2;
|
2021-03-22 15:57:41 +00:00
|
|
|
_skOutParamHelper12_out_half2x2_vh22(h2x2);
|
2021-10-30 02:34:51 +00:00
|
|
|
half3x3 h3x3;
|
2021-03-22 15:57:41 +00:00
|
|
|
_skOutParamHelper13_out_half3x3_vh33(h3x3);
|
2021-10-30 02:34:51 +00:00
|
|
|
half4x4 h4x4;
|
2021-03-22 15:57:41 +00:00
|
|
|
_skOutParamHelper14_out_half4x4_vh44(h4x4);
|
|
|
|
_skOutParamHelper15_out_half3_vh3(h3x3);
|
|
|
|
_skOutParamHelper16_out_half4_vh4(h4x4);
|
|
|
|
_skOutParamHelper17_out_half2_vh2(h2x2);
|
2021-10-30 02:34:51 +00:00
|
|
|
_out.sk_FragColor = half4(h2x2[0].x, h3x3[0].x, h4x4[0].x, 1.0h);
|
2020-12-04 16:58:26 +00:00
|
|
|
int i;
|
2021-03-22 15:57:41 +00:00
|
|
|
_skOutParamHelper18_out_int_vi(i);
|
2020-12-04 16:58:26 +00:00
|
|
|
int2 i2;
|
2021-03-22 15:57:41 +00:00
|
|
|
_skOutParamHelper19_out_int2_vi2(i2);
|
2020-12-04 16:58:26 +00:00
|
|
|
int3 i3;
|
2021-03-22 15:57:41 +00:00
|
|
|
_skOutParamHelper20_out_int3_vi3(i3);
|
2020-12-04 16:58:26 +00:00
|
|
|
int4 i4;
|
2021-03-22 15:57:41 +00:00
|
|
|
_skOutParamHelper21_out_int4_vi4(i4);
|
|
|
|
_skOutParamHelper22_out_int3_vi3(i4);
|
2021-10-30 02:34:51 +00:00
|
|
|
_out.sk_FragColor = half4(half(i), half(i2.x), half(i3.x), half(i4.x));
|
2020-12-04 16:58:26 +00:00
|
|
|
float f;
|
2021-03-22 15:57:41 +00:00
|
|
|
_skOutParamHelper23_out_float_vf(f);
|
2020-12-04 16:58:26 +00:00
|
|
|
float2 f2;
|
2021-03-22 15:57:41 +00:00
|
|
|
_skOutParamHelper24_out_float2_vf2(f2);
|
2020-12-04 16:58:26 +00:00
|
|
|
float3 f3;
|
2021-03-22 15:57:41 +00:00
|
|
|
_skOutParamHelper25_out_float3_vf3(f3);
|
2020-12-04 16:58:26 +00:00
|
|
|
float4 f4;
|
2021-03-22 15:57:41 +00:00
|
|
|
_skOutParamHelper26_out_float4_vf4(f4);
|
|
|
|
_skOutParamHelper27_out_float2_vf2(f3);
|
|
|
|
_skOutParamHelper28_out_float_vf(f2);
|
2021-10-30 02:34:51 +00:00
|
|
|
_out.sk_FragColor = half4(half(f), half(f2.x), half(f3.x), half(f4.x));
|
2020-12-04 16:58:26 +00:00
|
|
|
float2x2 f2x2;
|
2021-03-22 15:57:41 +00:00
|
|
|
_skOutParamHelper29_out_float2x2_vf22(f2x2);
|
2020-12-04 16:58:26 +00:00
|
|
|
float3x3 f3x3;
|
2021-03-22 15:57:41 +00:00
|
|
|
_skOutParamHelper30_out_float3x3_vf33(f3x3);
|
2020-12-04 16:58:26 +00:00
|
|
|
float4x4 f4x4;
|
2021-03-22 15:57:41 +00:00
|
|
|
_skOutParamHelper31_out_float4x4_vf44(f4x4);
|
|
|
|
_skOutParamHelper32_out_float_vf(f2x2);
|
|
|
|
_skOutParamHelper33_out_float4_vf4(f4x4);
|
2021-10-30 02:34:51 +00:00
|
|
|
_out.sk_FragColor = half4(half(f2x2[0].x), half(f3x3[0].x), half(f4x4[0].x), 1.0h);
|
2020-12-04 16:58:26 +00:00
|
|
|
bool b;
|
2021-03-22 15:57:41 +00:00
|
|
|
_skOutParamHelper34_out_bool_vb(b);
|
2020-12-04 16:58:26 +00:00
|
|
|
bool2 b2;
|
2021-03-22 15:57:41 +00:00
|
|
|
_skOutParamHelper35_out_bool2_vb2(b2);
|
2020-12-04 16:58:26 +00:00
|
|
|
bool3 b3;
|
2021-03-22 15:57:41 +00:00
|
|
|
_skOutParamHelper36_out_bool3_vb3(b3);
|
2020-12-04 16:58:26 +00:00
|
|
|
bool4 b4;
|
2021-03-22 15:57:41 +00:00
|
|
|
_skOutParamHelper37_out_bool4_vb4(b4);
|
|
|
|
_skOutParamHelper38_out_bool2_vb2(b4);
|
|
|
|
_skOutParamHelper39_out_bool_vb(b3);
|
2021-10-30 02:34:51 +00:00
|
|
|
_out.sk_FragColor = half4(half(b), half(b2.x), half(b3.x), half(b4.x));
|
2021-01-19 18:07:55 +00:00
|
|
|
return _out;
|
2020-12-04 16:58:26 +00:00
|
|
|
}
|