133 lines
3.6 KiB
Plaintext
133 lines
3.6 KiB
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
struct S {
|
|
/* 0x0000 */ packed_int3 v;
|
|
/* 0x000c */ int8_t tint_pad[4];
|
|
};
|
|
|
|
void f(constant S& U) {
|
|
int3 v = U.v;
|
|
int x = U.v[0];
|
|
int y = U.v[1];
|
|
int z = U.v[2];
|
|
int2 xx = int3(U.v).xx;
|
|
int2 xy = int3(U.v).xy;
|
|
int2 xz = int3(U.v).xz;
|
|
int2 yx = int3(U.v).yx;
|
|
int2 yy = int3(U.v).yy;
|
|
int2 yz = int3(U.v).yz;
|
|
int2 zx = int3(U.v).zx;
|
|
int2 zy = int3(U.v).zy;
|
|
int2 zz = int3(U.v).zz;
|
|
int3 xxx = int3(U.v).xxx;
|
|
int3 xxy = int3(U.v).xxy;
|
|
int3 xxz = int3(U.v).xxz;
|
|
int3 xyx = int3(U.v).xyx;
|
|
int3 xyy = int3(U.v).xyy;
|
|
int3 xyz = int3(U.v).xyz;
|
|
int3 xzx = int3(U.v).xzx;
|
|
int3 xzy = int3(U.v).xzy;
|
|
int3 xzz = int3(U.v).xzz;
|
|
int3 yxx = int3(U.v).yxx;
|
|
int3 yxy = int3(U.v).yxy;
|
|
int3 yxz = int3(U.v).yxz;
|
|
int3 yyx = int3(U.v).yyx;
|
|
int3 yyy = int3(U.v).yyy;
|
|
int3 yyz = int3(U.v).yyz;
|
|
int3 yzx = int3(U.v).yzx;
|
|
int3 yzy = int3(U.v).yzy;
|
|
int3 yzz = int3(U.v).yzz;
|
|
int3 zxx = int3(U.v).zxx;
|
|
int3 zxy = int3(U.v).zxy;
|
|
int3 zxz = int3(U.v).zxz;
|
|
int3 zyx = int3(U.v).zyx;
|
|
int3 zyy = int3(U.v).zyy;
|
|
int3 zyz = int3(U.v).zyz;
|
|
int3 zzx = int3(U.v).zzx;
|
|
int3 zzy = int3(U.v).zzy;
|
|
int3 zzz = int3(U.v).zzz;
|
|
int4 xxxx = int3(U.v).xxxx;
|
|
int4 xxxy = int3(U.v).xxxy;
|
|
int4 xxxz = int3(U.v).xxxz;
|
|
int4 xxyx = int3(U.v).xxyx;
|
|
int4 xxyy = int3(U.v).xxyy;
|
|
int4 xxyz = int3(U.v).xxyz;
|
|
int4 xxzx = int3(U.v).xxzx;
|
|
int4 xxzy = int3(U.v).xxzy;
|
|
int4 xxzz = int3(U.v).xxzz;
|
|
int4 xyxx = int3(U.v).xyxx;
|
|
int4 xyxy = int3(U.v).xyxy;
|
|
int4 xyxz = int3(U.v).xyxz;
|
|
int4 xyyx = int3(U.v).xyyx;
|
|
int4 xyyy = int3(U.v).xyyy;
|
|
int4 xyyz = int3(U.v).xyyz;
|
|
int4 xyzx = int3(U.v).xyzx;
|
|
int4 xyzy = int3(U.v).xyzy;
|
|
int4 xyzz = int3(U.v).xyzz;
|
|
int4 xzxx = int3(U.v).xzxx;
|
|
int4 xzxy = int3(U.v).xzxy;
|
|
int4 xzxz = int3(U.v).xzxz;
|
|
int4 xzyx = int3(U.v).xzyx;
|
|
int4 xzyy = int3(U.v).xzyy;
|
|
int4 xzyz = int3(U.v).xzyz;
|
|
int4 xzzx = int3(U.v).xzzx;
|
|
int4 xzzy = int3(U.v).xzzy;
|
|
int4 xzzz = int3(U.v).xzzz;
|
|
int4 yxxx = int3(U.v).yxxx;
|
|
int4 yxxy = int3(U.v).yxxy;
|
|
int4 yxxz = int3(U.v).yxxz;
|
|
int4 yxyx = int3(U.v).yxyx;
|
|
int4 yxyy = int3(U.v).yxyy;
|
|
int4 yxyz = int3(U.v).yxyz;
|
|
int4 yxzx = int3(U.v).yxzx;
|
|
int4 yxzy = int3(U.v).yxzy;
|
|
int4 yxzz = int3(U.v).yxzz;
|
|
int4 yyxx = int3(U.v).yyxx;
|
|
int4 yyxy = int3(U.v).yyxy;
|
|
int4 yyxz = int3(U.v).yyxz;
|
|
int4 yyyx = int3(U.v).yyyx;
|
|
int4 yyyy = int3(U.v).yyyy;
|
|
int4 yyyz = int3(U.v).yyyz;
|
|
int4 yyzx = int3(U.v).yyzx;
|
|
int4 yyzy = int3(U.v).yyzy;
|
|
int4 yyzz = int3(U.v).yyzz;
|
|
int4 yzxx = int3(U.v).yzxx;
|
|
int4 yzxy = int3(U.v).yzxy;
|
|
int4 yzxz = int3(U.v).yzxz;
|
|
int4 yzyx = int3(U.v).yzyx;
|
|
int4 yzyy = int3(U.v).yzyy;
|
|
int4 yzyz = int3(U.v).yzyz;
|
|
int4 yzzx = int3(U.v).yzzx;
|
|
int4 yzzy = int3(U.v).yzzy;
|
|
int4 yzzz = int3(U.v).yzzz;
|
|
int4 zxxx = int3(U.v).zxxx;
|
|
int4 zxxy = int3(U.v).zxxy;
|
|
int4 zxxz = int3(U.v).zxxz;
|
|
int4 zxyx = int3(U.v).zxyx;
|
|
int4 zxyy = int3(U.v).zxyy;
|
|
int4 zxyz = int3(U.v).zxyz;
|
|
int4 zxzx = int3(U.v).zxzx;
|
|
int4 zxzy = int3(U.v).zxzy;
|
|
int4 zxzz = int3(U.v).zxzz;
|
|
int4 zyxx = int3(U.v).zyxx;
|
|
int4 zyxy = int3(U.v).zyxy;
|
|
int4 zyxz = int3(U.v).zyxz;
|
|
int4 zyyx = int3(U.v).zyyx;
|
|
int4 zyyy = int3(U.v).zyyy;
|
|
int4 zyyz = int3(U.v).zyyz;
|
|
int4 zyzx = int3(U.v).zyzx;
|
|
int4 zyzy = int3(U.v).zyzy;
|
|
int4 zyzz = int3(U.v).zyzz;
|
|
int4 zzxx = int3(U.v).zzxx;
|
|
int4 zzxy = int3(U.v).zzxy;
|
|
int4 zzxz = int3(U.v).zzxz;
|
|
int4 zzyx = int3(U.v).zzyx;
|
|
int4 zzyy = int3(U.v).zzyy;
|
|
int4 zzyz = int3(U.v).zzyz;
|
|
int4 zzzx = int3(U.v).zzzx;
|
|
int4 zzzy = int3(U.v).zzzy;
|
|
int4 zzzz = int3(U.v).zzzz;
|
|
}
|
|
|