blob: 2937bb6b626118e16e8a54bfb75242db18a76d33 [file] [log] [blame]
cbuffer cbuffer_U : register(b0) {
uint4 U[1];
};
vector<float16_t, 4> tint_bitcast_to_f16(uint2 src) {
uint2 v = src;
uint2 mask = (65535u).xx;
uint2 shift = (16u).xx;
float2 t_low = f16tof32((v & mask));
float2 t_high = f16tof32(((v >> shift) & mask));
float16_t v_1 = float16_t(t_low.x);
float16_t v_2 = float16_t(t_high.x);
float16_t v_3 = float16_t(t_low.y);
return vector<float16_t, 4>(v_1, v_2, v_3, float16_t(t_high.y));
}
void f() {
vector<float16_t, 3> v = tint_bitcast_to_f16(U[0u].xy).xyz;
float16_t x = float16_t(f16tof32(U[0u].x));
float16_t y = float16_t(f16tof32((U[0u].x >> 16u)));
float16_t z = float16_t(f16tof32(U[0u].y));
vector<float16_t, 2> xx = tint_bitcast_to_f16(U[0u].xy).xyz.xx;
vector<float16_t, 2> xy = tint_bitcast_to_f16(U[0u].xy).xyz.xy;
vector<float16_t, 2> xz = tint_bitcast_to_f16(U[0u].xy).xyz.xz;
vector<float16_t, 2> yx = tint_bitcast_to_f16(U[0u].xy).xyz.yx;
vector<float16_t, 2> yy = tint_bitcast_to_f16(U[0u].xy).xyz.yy;
vector<float16_t, 2> yz = tint_bitcast_to_f16(U[0u].xy).xyz.yz;
vector<float16_t, 2> zx = tint_bitcast_to_f16(U[0u].xy).xyz.zx;
vector<float16_t, 2> zy = tint_bitcast_to_f16(U[0u].xy).xyz.zy;
vector<float16_t, 2> zz = tint_bitcast_to_f16(U[0u].xy).xyz.zz;
vector<float16_t, 3> xxx = tint_bitcast_to_f16(U[0u].xy).xyz.xxx;
vector<float16_t, 3> xxy = tint_bitcast_to_f16(U[0u].xy).xyz.xxy;
vector<float16_t, 3> xxz = tint_bitcast_to_f16(U[0u].xy).xyz.xxz;
vector<float16_t, 3> xyx = tint_bitcast_to_f16(U[0u].xy).xyz.xyx;
vector<float16_t, 3> xyy = tint_bitcast_to_f16(U[0u].xy).xyz.xyy;
vector<float16_t, 3> xyz = tint_bitcast_to_f16(U[0u].xy).xyz.xyz;
vector<float16_t, 3> xzx = tint_bitcast_to_f16(U[0u].xy).xyz.xzx;
vector<float16_t, 3> xzy = tint_bitcast_to_f16(U[0u].xy).xyz.xzy;
vector<float16_t, 3> xzz = tint_bitcast_to_f16(U[0u].xy).xyz.xzz;
vector<float16_t, 3> yxx = tint_bitcast_to_f16(U[0u].xy).xyz.yxx;
vector<float16_t, 3> yxy = tint_bitcast_to_f16(U[0u].xy).xyz.yxy;
vector<float16_t, 3> yxz = tint_bitcast_to_f16(U[0u].xy).xyz.yxz;
vector<float16_t, 3> yyx = tint_bitcast_to_f16(U[0u].xy).xyz.yyx;
vector<float16_t, 3> yyy = tint_bitcast_to_f16(U[0u].xy).xyz.yyy;
vector<float16_t, 3> yyz = tint_bitcast_to_f16(U[0u].xy).xyz.yyz;
vector<float16_t, 3> yzx = tint_bitcast_to_f16(U[0u].xy).xyz.yzx;
vector<float16_t, 3> yzy = tint_bitcast_to_f16(U[0u].xy).xyz.yzy;
vector<float16_t, 3> yzz = tint_bitcast_to_f16(U[0u].xy).xyz.yzz;
vector<float16_t, 3> zxx = tint_bitcast_to_f16(U[0u].xy).xyz.zxx;
vector<float16_t, 3> zxy = tint_bitcast_to_f16(U[0u].xy).xyz.zxy;
vector<float16_t, 3> zxz = tint_bitcast_to_f16(U[0u].xy).xyz.zxz;
vector<float16_t, 3> zyx = tint_bitcast_to_f16(U[0u].xy).xyz.zyx;
vector<float16_t, 3> zyy = tint_bitcast_to_f16(U[0u].xy).xyz.zyy;
vector<float16_t, 3> zyz = tint_bitcast_to_f16(U[0u].xy).xyz.zyz;
vector<float16_t, 3> zzx = tint_bitcast_to_f16(U[0u].xy).xyz.zzx;
vector<float16_t, 3> zzy = tint_bitcast_to_f16(U[0u].xy).xyz.zzy;
vector<float16_t, 3> zzz = tint_bitcast_to_f16(U[0u].xy).xyz.zzz;
vector<float16_t, 4> xxxx = tint_bitcast_to_f16(U[0u].xy).xyz.xxxx;
vector<float16_t, 4> xxxy = tint_bitcast_to_f16(U[0u].xy).xyz.xxxy;
vector<float16_t, 4> xxxz = tint_bitcast_to_f16(U[0u].xy).xyz.xxxz;
vector<float16_t, 4> xxyx = tint_bitcast_to_f16(U[0u].xy).xyz.xxyx;
vector<float16_t, 4> xxyy = tint_bitcast_to_f16(U[0u].xy).xyz.xxyy;
vector<float16_t, 4> xxyz = tint_bitcast_to_f16(U[0u].xy).xyz.xxyz;
vector<float16_t, 4> xxzx = tint_bitcast_to_f16(U[0u].xy).xyz.xxzx;
vector<float16_t, 4> xxzy = tint_bitcast_to_f16(U[0u].xy).xyz.xxzy;
vector<float16_t, 4> xxzz = tint_bitcast_to_f16(U[0u].xy).xyz.xxzz;
vector<float16_t, 4> xyxx = tint_bitcast_to_f16(U[0u].xy).xyz.xyxx;
vector<float16_t, 4> xyxy = tint_bitcast_to_f16(U[0u].xy).xyz.xyxy;
vector<float16_t, 4> xyxz = tint_bitcast_to_f16(U[0u].xy).xyz.xyxz;
vector<float16_t, 4> xyyx = tint_bitcast_to_f16(U[0u].xy).xyz.xyyx;
vector<float16_t, 4> xyyy = tint_bitcast_to_f16(U[0u].xy).xyz.xyyy;
vector<float16_t, 4> xyyz = tint_bitcast_to_f16(U[0u].xy).xyz.xyyz;
vector<float16_t, 4> xyzx = tint_bitcast_to_f16(U[0u].xy).xyz.xyzx;
vector<float16_t, 4> xyzy = tint_bitcast_to_f16(U[0u].xy).xyz.xyzy;
vector<float16_t, 4> xyzz = tint_bitcast_to_f16(U[0u].xy).xyz.xyzz;
vector<float16_t, 4> xzxx = tint_bitcast_to_f16(U[0u].xy).xyz.xzxx;
vector<float16_t, 4> xzxy = tint_bitcast_to_f16(U[0u].xy).xyz.xzxy;
vector<float16_t, 4> xzxz = tint_bitcast_to_f16(U[0u].xy).xyz.xzxz;
vector<float16_t, 4> xzyx = tint_bitcast_to_f16(U[0u].xy).xyz.xzyx;
vector<float16_t, 4> xzyy = tint_bitcast_to_f16(U[0u].xy).xyz.xzyy;
vector<float16_t, 4> xzyz = tint_bitcast_to_f16(U[0u].xy).xyz.xzyz;
vector<float16_t, 4> xzzx = tint_bitcast_to_f16(U[0u].xy).xyz.xzzx;
vector<float16_t, 4> xzzy = tint_bitcast_to_f16(U[0u].xy).xyz.xzzy;
vector<float16_t, 4> xzzz = tint_bitcast_to_f16(U[0u].xy).xyz.xzzz;
vector<float16_t, 4> yxxx = tint_bitcast_to_f16(U[0u].xy).xyz.yxxx;
vector<float16_t, 4> yxxy = tint_bitcast_to_f16(U[0u].xy).xyz.yxxy;
vector<float16_t, 4> yxxz = tint_bitcast_to_f16(U[0u].xy).xyz.yxxz;
vector<float16_t, 4> yxyx = tint_bitcast_to_f16(U[0u].xy).xyz.yxyx;
vector<float16_t, 4> yxyy = tint_bitcast_to_f16(U[0u].xy).xyz.yxyy;
vector<float16_t, 4> yxyz = tint_bitcast_to_f16(U[0u].xy).xyz.yxyz;
vector<float16_t, 4> yxzx = tint_bitcast_to_f16(U[0u].xy).xyz.yxzx;
vector<float16_t, 4> yxzy = tint_bitcast_to_f16(U[0u].xy).xyz.yxzy;
vector<float16_t, 4> yxzz = tint_bitcast_to_f16(U[0u].xy).xyz.yxzz;
vector<float16_t, 4> yyxx = tint_bitcast_to_f16(U[0u].xy).xyz.yyxx;
vector<float16_t, 4> yyxy = tint_bitcast_to_f16(U[0u].xy).xyz.yyxy;
vector<float16_t, 4> yyxz = tint_bitcast_to_f16(U[0u].xy).xyz.yyxz;
vector<float16_t, 4> yyyx = tint_bitcast_to_f16(U[0u].xy).xyz.yyyx;
vector<float16_t, 4> yyyy = tint_bitcast_to_f16(U[0u].xy).xyz.yyyy;
vector<float16_t, 4> yyyz = tint_bitcast_to_f16(U[0u].xy).xyz.yyyz;
vector<float16_t, 4> yyzx = tint_bitcast_to_f16(U[0u].xy).xyz.yyzx;
vector<float16_t, 4> yyzy = tint_bitcast_to_f16(U[0u].xy).xyz.yyzy;
vector<float16_t, 4> yyzz = tint_bitcast_to_f16(U[0u].xy).xyz.yyzz;
vector<float16_t, 4> yzxx = tint_bitcast_to_f16(U[0u].xy).xyz.yzxx;
vector<float16_t, 4> yzxy = tint_bitcast_to_f16(U[0u].xy).xyz.yzxy;
vector<float16_t, 4> yzxz = tint_bitcast_to_f16(U[0u].xy).xyz.yzxz;
vector<float16_t, 4> yzyx = tint_bitcast_to_f16(U[0u].xy).xyz.yzyx;
vector<float16_t, 4> yzyy = tint_bitcast_to_f16(U[0u].xy).xyz.yzyy;
vector<float16_t, 4> yzyz = tint_bitcast_to_f16(U[0u].xy).xyz.yzyz;
vector<float16_t, 4> yzzx = tint_bitcast_to_f16(U[0u].xy).xyz.yzzx;
vector<float16_t, 4> yzzy = tint_bitcast_to_f16(U[0u].xy).xyz.yzzy;
vector<float16_t, 4> yzzz = tint_bitcast_to_f16(U[0u].xy).xyz.yzzz;
vector<float16_t, 4> zxxx = tint_bitcast_to_f16(U[0u].xy).xyz.zxxx;
vector<float16_t, 4> zxxy = tint_bitcast_to_f16(U[0u].xy).xyz.zxxy;
vector<float16_t, 4> zxxz = tint_bitcast_to_f16(U[0u].xy).xyz.zxxz;
vector<float16_t, 4> zxyx = tint_bitcast_to_f16(U[0u].xy).xyz.zxyx;
vector<float16_t, 4> zxyy = tint_bitcast_to_f16(U[0u].xy).xyz.zxyy;
vector<float16_t, 4> zxyz = tint_bitcast_to_f16(U[0u].xy).xyz.zxyz;
vector<float16_t, 4> zxzx = tint_bitcast_to_f16(U[0u].xy).xyz.zxzx;
vector<float16_t, 4> zxzy = tint_bitcast_to_f16(U[0u].xy).xyz.zxzy;
vector<float16_t, 4> zxzz = tint_bitcast_to_f16(U[0u].xy).xyz.zxzz;
vector<float16_t, 4> zyxx = tint_bitcast_to_f16(U[0u].xy).xyz.zyxx;
vector<float16_t, 4> zyxy = tint_bitcast_to_f16(U[0u].xy).xyz.zyxy;
vector<float16_t, 4> zyxz = tint_bitcast_to_f16(U[0u].xy).xyz.zyxz;
vector<float16_t, 4> zyyx = tint_bitcast_to_f16(U[0u].xy).xyz.zyyx;
vector<float16_t, 4> zyyy = tint_bitcast_to_f16(U[0u].xy).xyz.zyyy;
vector<float16_t, 4> zyyz = tint_bitcast_to_f16(U[0u].xy).xyz.zyyz;
vector<float16_t, 4> zyzx = tint_bitcast_to_f16(U[0u].xy).xyz.zyzx;
vector<float16_t, 4> zyzy = tint_bitcast_to_f16(U[0u].xy).xyz.zyzy;
vector<float16_t, 4> zyzz = tint_bitcast_to_f16(U[0u].xy).xyz.zyzz;
vector<float16_t, 4> zzxx = tint_bitcast_to_f16(U[0u].xy).xyz.zzxx;
vector<float16_t, 4> zzxy = tint_bitcast_to_f16(U[0u].xy).xyz.zzxy;
vector<float16_t, 4> zzxz = tint_bitcast_to_f16(U[0u].xy).xyz.zzxz;
vector<float16_t, 4> zzyx = tint_bitcast_to_f16(U[0u].xy).xyz.zzyx;
vector<float16_t, 4> zzyy = tint_bitcast_to_f16(U[0u].xy).xyz.zzyy;
vector<float16_t, 4> zzyz = tint_bitcast_to_f16(U[0u].xy).xyz.zzyz;
vector<float16_t, 4> zzzx = tint_bitcast_to_f16(U[0u].xy).xyz.zzzx;
vector<float16_t, 4> zzzy = tint_bitcast_to_f16(U[0u].xy).xyz.zzzy;
vector<float16_t, 4> zzzz = tint_bitcast_to_f16(U[0u].xy).xyz.zzzz;
}
[numthreads(1, 1, 1)]
void unused_entry_point() {
}