dawn-cmake/test/expressions/swizzle/read/packed_vec3/u32.wgsl.expected.msl

133 lines
3.8 KiB
Plaintext

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