mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 21:47:47 +00:00
test/tint: Update SKIP "expectations"
Change-Id: I131522625051426e93624fbe4f4763071f26ad72 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/122202 Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: Ben Clayton <bclayton@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
f0e578f8bd
commit
b990d393f5
@@ -8,240 +8,240 @@ struct tint_symbol_1 {
|
||||
uint idx : SV_GroupIndex;
|
||||
};
|
||||
|
||||
float2x2 tint_symbol_18(uint4 buffer[400], uint offset) {
|
||||
float2x2 ub_load_16(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load = ub[scalar_offset / 4];
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_1 = ub[scalar_offset_1 / 4];
|
||||
return float2x2(asfloat(((scalar_offset & 2) ? ubo_load.zw : ubo_load.xy)), asfloat(((scalar_offset_1 & 2) ? ubo_load_1.zw : ubo_load_1.xy)));
|
||||
}
|
||||
|
||||
float2x3 tint_symbol_19(uint4 buffer[400], uint offset) {
|
||||
float2x3 ub_load_17(uint offset) {
|
||||
const uint scalar_offset_2 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_3 = ((offset + 16u)) / 4;
|
||||
return float2x3(asfloat(buffer[scalar_offset_2 / 4].xyz), asfloat(buffer[scalar_offset_3 / 4].xyz));
|
||||
return float2x3(asfloat(ub[scalar_offset_2 / 4].xyz), asfloat(ub[scalar_offset_3 / 4].xyz));
|
||||
}
|
||||
|
||||
float2x4 tint_symbol_20(uint4 buffer[400], uint offset) {
|
||||
float2x4 ub_load_18(uint offset) {
|
||||
const uint scalar_offset_4 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_5 = ((offset + 16u)) / 4;
|
||||
return float2x4(asfloat(buffer[scalar_offset_4 / 4]), asfloat(buffer[scalar_offset_5 / 4]));
|
||||
return float2x4(asfloat(ub[scalar_offset_4 / 4]), asfloat(ub[scalar_offset_5 / 4]));
|
||||
}
|
||||
|
||||
float3x2 tint_symbol_21(uint4 buffer[400], uint offset) {
|
||||
float3x2 ub_load_19(uint offset) {
|
||||
const uint scalar_offset_6 = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_2 = buffer[scalar_offset_6 / 4];
|
||||
uint4 ubo_load_2 = ub[scalar_offset_6 / 4];
|
||||
const uint scalar_offset_7 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_7 / 4];
|
||||
uint4 ubo_load_3 = ub[scalar_offset_7 / 4];
|
||||
const uint scalar_offset_8 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_4 = buffer[scalar_offset_8 / 4];
|
||||
uint4 ubo_load_4 = ub[scalar_offset_8 / 4];
|
||||
return float3x2(asfloat(((scalar_offset_6 & 2) ? ubo_load_2.zw : ubo_load_2.xy)), asfloat(((scalar_offset_7 & 2) ? ubo_load_3.zw : ubo_load_3.xy)), asfloat(((scalar_offset_8 & 2) ? ubo_load_4.zw : ubo_load_4.xy)));
|
||||
}
|
||||
|
||||
float3x3 tint_symbol_22(uint4 buffer[400], uint offset) {
|
||||
float3x3 ub_load_20(uint offset) {
|
||||
const uint scalar_offset_9 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_10 = ((offset + 16u)) / 4;
|
||||
const uint scalar_offset_11 = ((offset + 32u)) / 4;
|
||||
return float3x3(asfloat(buffer[scalar_offset_9 / 4].xyz), asfloat(buffer[scalar_offset_10 / 4].xyz), asfloat(buffer[scalar_offset_11 / 4].xyz));
|
||||
return float3x3(asfloat(ub[scalar_offset_9 / 4].xyz), asfloat(ub[scalar_offset_10 / 4].xyz), asfloat(ub[scalar_offset_11 / 4].xyz));
|
||||
}
|
||||
|
||||
float3x4 tint_symbol_23(uint4 buffer[400], uint offset) {
|
||||
float3x4 ub_load_21(uint offset) {
|
||||
const uint scalar_offset_12 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_13 = ((offset + 16u)) / 4;
|
||||
const uint scalar_offset_14 = ((offset + 32u)) / 4;
|
||||
return float3x4(asfloat(buffer[scalar_offset_12 / 4]), asfloat(buffer[scalar_offset_13 / 4]), asfloat(buffer[scalar_offset_14 / 4]));
|
||||
return float3x4(asfloat(ub[scalar_offset_12 / 4]), asfloat(ub[scalar_offset_13 / 4]), asfloat(ub[scalar_offset_14 / 4]));
|
||||
}
|
||||
|
||||
float4x2 tint_symbol_24(uint4 buffer[400], uint offset) {
|
||||
float4x2 ub_load_22(uint offset) {
|
||||
const uint scalar_offset_15 = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_15 / 4];
|
||||
uint4 ubo_load_5 = ub[scalar_offset_15 / 4];
|
||||
const uint scalar_offset_16 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_6 = buffer[scalar_offset_16 / 4];
|
||||
uint4 ubo_load_6 = ub[scalar_offset_16 / 4];
|
||||
const uint scalar_offset_17 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_17 / 4];
|
||||
uint4 ubo_load_7 = ub[scalar_offset_17 / 4];
|
||||
const uint scalar_offset_18 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_8 = buffer[scalar_offset_18 / 4];
|
||||
uint4 ubo_load_8 = ub[scalar_offset_18 / 4];
|
||||
return float4x2(asfloat(((scalar_offset_15 & 2) ? ubo_load_5.zw : ubo_load_5.xy)), asfloat(((scalar_offset_16 & 2) ? ubo_load_6.zw : ubo_load_6.xy)), asfloat(((scalar_offset_17 & 2) ? ubo_load_7.zw : ubo_load_7.xy)), asfloat(((scalar_offset_18 & 2) ? ubo_load_8.zw : ubo_load_8.xy)));
|
||||
}
|
||||
|
||||
float4x3 tint_symbol_25(uint4 buffer[400], uint offset) {
|
||||
float4x3 ub_load_23(uint offset) {
|
||||
const uint scalar_offset_19 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_20 = ((offset + 16u)) / 4;
|
||||
const uint scalar_offset_21 = ((offset + 32u)) / 4;
|
||||
const uint scalar_offset_22 = ((offset + 48u)) / 4;
|
||||
return float4x3(asfloat(buffer[scalar_offset_19 / 4].xyz), asfloat(buffer[scalar_offset_20 / 4].xyz), asfloat(buffer[scalar_offset_21 / 4].xyz), asfloat(buffer[scalar_offset_22 / 4].xyz));
|
||||
return float4x3(asfloat(ub[scalar_offset_19 / 4].xyz), asfloat(ub[scalar_offset_20 / 4].xyz), asfloat(ub[scalar_offset_21 / 4].xyz), asfloat(ub[scalar_offset_22 / 4].xyz));
|
||||
}
|
||||
|
||||
float4x4 tint_symbol_26(uint4 buffer[400], uint offset) {
|
||||
float4x4 ub_load_24(uint offset) {
|
||||
const uint scalar_offset_23 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_24 = ((offset + 16u)) / 4;
|
||||
const uint scalar_offset_25 = ((offset + 32u)) / 4;
|
||||
const uint scalar_offset_26 = ((offset + 48u)) / 4;
|
||||
return float4x4(asfloat(buffer[scalar_offset_23 / 4]), asfloat(buffer[scalar_offset_24 / 4]), asfloat(buffer[scalar_offset_25 / 4]), asfloat(buffer[scalar_offset_26 / 4]));
|
||||
return float4x4(asfloat(ub[scalar_offset_23 / 4]), asfloat(ub[scalar_offset_24 / 4]), asfloat(ub[scalar_offset_25 / 4]), asfloat(ub[scalar_offset_26 / 4]));
|
||||
}
|
||||
|
||||
matrix<float16_t, 2, 2> tint_symbol_27(uint4 buffer[400], uint offset) {
|
||||
matrix<float16_t, 2, 2> ub_load_25(uint offset) {
|
||||
const uint scalar_offset_27 = ((offset + 0u)) / 4;
|
||||
uint ubo_load_9 = buffer[scalar_offset_27 / 4][scalar_offset_27 % 4];
|
||||
uint ubo_load_9 = ub[scalar_offset_27 / 4][scalar_offset_27 % 4];
|
||||
const uint scalar_offset_28 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_10 = buffer[scalar_offset_28 / 4][scalar_offset_28 % 4];
|
||||
uint ubo_load_10 = ub[scalar_offset_28 / 4][scalar_offset_28 % 4];
|
||||
return matrix<float16_t, 2, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_9 & 0xFFFF)), float16_t(f16tof32(ubo_load_9 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_10 & 0xFFFF)), float16_t(f16tof32(ubo_load_10 >> 16))));
|
||||
}
|
||||
|
||||
matrix<float16_t, 2, 3> tint_symbol_28(uint4 buffer[400], uint offset) {
|
||||
matrix<float16_t, 2, 3> ub_load_26(uint offset) {
|
||||
const uint scalar_offset_29 = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_12 = buffer[scalar_offset_29 / 4];
|
||||
uint4 ubo_load_12 = ub[scalar_offset_29 / 4];
|
||||
uint2 ubo_load_11 = ((scalar_offset_29 & 2) ? ubo_load_12.zw : ubo_load_12.xy);
|
||||
vector<float16_t, 2> ubo_load_11_xz = vector<float16_t, 2>(f16tof32(ubo_load_11 & 0xFFFF));
|
||||
float16_t ubo_load_11_y = f16tof32(ubo_load_11[0] >> 16);
|
||||
const uint scalar_offset_30 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_14 = buffer[scalar_offset_30 / 4];
|
||||
uint4 ubo_load_14 = ub[scalar_offset_30 / 4];
|
||||
uint2 ubo_load_13 = ((scalar_offset_30 & 2) ? ubo_load_14.zw : ubo_load_14.xy);
|
||||
vector<float16_t, 2> ubo_load_13_xz = vector<float16_t, 2>(f16tof32(ubo_load_13 & 0xFFFF));
|
||||
float16_t ubo_load_13_y = f16tof32(ubo_load_13[0] >> 16);
|
||||
return matrix<float16_t, 2, 3>(vector<float16_t, 3>(ubo_load_11_xz[0], ubo_load_11_y, ubo_load_11_xz[1]), vector<float16_t, 3>(ubo_load_13_xz[0], ubo_load_13_y, ubo_load_13_xz[1]));
|
||||
}
|
||||
|
||||
matrix<float16_t, 2, 4> tint_symbol_29(uint4 buffer[400], uint offset) {
|
||||
matrix<float16_t, 2, 4> ub_load_27(uint offset) {
|
||||
const uint scalar_offset_31 = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_16 = buffer[scalar_offset_31 / 4];
|
||||
uint4 ubo_load_16 = ub[scalar_offset_31 / 4];
|
||||
uint2 ubo_load_15 = ((scalar_offset_31 & 2) ? ubo_load_16.zw : ubo_load_16.xy);
|
||||
vector<float16_t, 2> ubo_load_15_xz = vector<float16_t, 2>(f16tof32(ubo_load_15 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_15_yw = vector<float16_t, 2>(f16tof32(ubo_load_15 >> 16));
|
||||
const uint scalar_offset_32 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_18 = buffer[scalar_offset_32 / 4];
|
||||
uint4 ubo_load_18 = ub[scalar_offset_32 / 4];
|
||||
uint2 ubo_load_17 = ((scalar_offset_32 & 2) ? ubo_load_18.zw : ubo_load_18.xy);
|
||||
vector<float16_t, 2> ubo_load_17_xz = vector<float16_t, 2>(f16tof32(ubo_load_17 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_17_yw = vector<float16_t, 2>(f16tof32(ubo_load_17 >> 16));
|
||||
return matrix<float16_t, 2, 4>(vector<float16_t, 4>(ubo_load_15_xz[0], ubo_load_15_yw[0], ubo_load_15_xz[1], ubo_load_15_yw[1]), vector<float16_t, 4>(ubo_load_17_xz[0], ubo_load_17_yw[0], ubo_load_17_xz[1], ubo_load_17_yw[1]));
|
||||
}
|
||||
|
||||
matrix<float16_t, 3, 2> tint_symbol_30(uint4 buffer[400], uint offset) {
|
||||
matrix<float16_t, 3, 2> ub_load_28(uint offset) {
|
||||
const uint scalar_offset_33 = ((offset + 0u)) / 4;
|
||||
uint ubo_load_19 = buffer[scalar_offset_33 / 4][scalar_offset_33 % 4];
|
||||
uint ubo_load_19 = ub[scalar_offset_33 / 4][scalar_offset_33 % 4];
|
||||
const uint scalar_offset_34 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_20 = buffer[scalar_offset_34 / 4][scalar_offset_34 % 4];
|
||||
uint ubo_load_20 = ub[scalar_offset_34 / 4][scalar_offset_34 % 4];
|
||||
const uint scalar_offset_35 = ((offset + 8u)) / 4;
|
||||
uint ubo_load_21 = buffer[scalar_offset_35 / 4][scalar_offset_35 % 4];
|
||||
uint ubo_load_21 = ub[scalar_offset_35 / 4][scalar_offset_35 % 4];
|
||||
return matrix<float16_t, 3, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_19 & 0xFFFF)), float16_t(f16tof32(ubo_load_19 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_20 & 0xFFFF)), float16_t(f16tof32(ubo_load_20 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_21 & 0xFFFF)), float16_t(f16tof32(ubo_load_21 >> 16))));
|
||||
}
|
||||
|
||||
matrix<float16_t, 3, 3> tint_symbol_31(uint4 buffer[400], uint offset) {
|
||||
matrix<float16_t, 3, 3> ub_load_29(uint offset) {
|
||||
const uint scalar_offset_36 = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_23 = buffer[scalar_offset_36 / 4];
|
||||
uint4 ubo_load_23 = ub[scalar_offset_36 / 4];
|
||||
uint2 ubo_load_22 = ((scalar_offset_36 & 2) ? ubo_load_23.zw : ubo_load_23.xy);
|
||||
vector<float16_t, 2> ubo_load_22_xz = vector<float16_t, 2>(f16tof32(ubo_load_22 & 0xFFFF));
|
||||
float16_t ubo_load_22_y = f16tof32(ubo_load_22[0] >> 16);
|
||||
const uint scalar_offset_37 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_25 = buffer[scalar_offset_37 / 4];
|
||||
uint4 ubo_load_25 = ub[scalar_offset_37 / 4];
|
||||
uint2 ubo_load_24 = ((scalar_offset_37 & 2) ? ubo_load_25.zw : ubo_load_25.xy);
|
||||
vector<float16_t, 2> ubo_load_24_xz = vector<float16_t, 2>(f16tof32(ubo_load_24 & 0xFFFF));
|
||||
float16_t ubo_load_24_y = f16tof32(ubo_load_24[0] >> 16);
|
||||
const uint scalar_offset_38 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_27 = buffer[scalar_offset_38 / 4];
|
||||
uint4 ubo_load_27 = ub[scalar_offset_38 / 4];
|
||||
uint2 ubo_load_26 = ((scalar_offset_38 & 2) ? ubo_load_27.zw : ubo_load_27.xy);
|
||||
vector<float16_t, 2> ubo_load_26_xz = vector<float16_t, 2>(f16tof32(ubo_load_26 & 0xFFFF));
|
||||
float16_t ubo_load_26_y = f16tof32(ubo_load_26[0] >> 16);
|
||||
return matrix<float16_t, 3, 3>(vector<float16_t, 3>(ubo_load_22_xz[0], ubo_load_22_y, ubo_load_22_xz[1]), vector<float16_t, 3>(ubo_load_24_xz[0], ubo_load_24_y, ubo_load_24_xz[1]), vector<float16_t, 3>(ubo_load_26_xz[0], ubo_load_26_y, ubo_load_26_xz[1]));
|
||||
}
|
||||
|
||||
matrix<float16_t, 3, 4> tint_symbol_32(uint4 buffer[400], uint offset) {
|
||||
matrix<float16_t, 3, 4> ub_load_30(uint offset) {
|
||||
const uint scalar_offset_39 = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_29 = buffer[scalar_offset_39 / 4];
|
||||
uint4 ubo_load_29 = ub[scalar_offset_39 / 4];
|
||||
uint2 ubo_load_28 = ((scalar_offset_39 & 2) ? ubo_load_29.zw : ubo_load_29.xy);
|
||||
vector<float16_t, 2> ubo_load_28_xz = vector<float16_t, 2>(f16tof32(ubo_load_28 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_28_yw = vector<float16_t, 2>(f16tof32(ubo_load_28 >> 16));
|
||||
const uint scalar_offset_40 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_31 = buffer[scalar_offset_40 / 4];
|
||||
uint4 ubo_load_31 = ub[scalar_offset_40 / 4];
|
||||
uint2 ubo_load_30 = ((scalar_offset_40 & 2) ? ubo_load_31.zw : ubo_load_31.xy);
|
||||
vector<float16_t, 2> ubo_load_30_xz = vector<float16_t, 2>(f16tof32(ubo_load_30 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_30_yw = vector<float16_t, 2>(f16tof32(ubo_load_30 >> 16));
|
||||
const uint scalar_offset_41 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_33 = buffer[scalar_offset_41 / 4];
|
||||
uint4 ubo_load_33 = ub[scalar_offset_41 / 4];
|
||||
uint2 ubo_load_32 = ((scalar_offset_41 & 2) ? ubo_load_33.zw : ubo_load_33.xy);
|
||||
vector<float16_t, 2> ubo_load_32_xz = vector<float16_t, 2>(f16tof32(ubo_load_32 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_32_yw = vector<float16_t, 2>(f16tof32(ubo_load_32 >> 16));
|
||||
return matrix<float16_t, 3, 4>(vector<float16_t, 4>(ubo_load_28_xz[0], ubo_load_28_yw[0], ubo_load_28_xz[1], ubo_load_28_yw[1]), vector<float16_t, 4>(ubo_load_30_xz[0], ubo_load_30_yw[0], ubo_load_30_xz[1], ubo_load_30_yw[1]), vector<float16_t, 4>(ubo_load_32_xz[0], ubo_load_32_yw[0], ubo_load_32_xz[1], ubo_load_32_yw[1]));
|
||||
}
|
||||
|
||||
matrix<float16_t, 4, 2> tint_symbol_33(uint4 buffer[400], uint offset) {
|
||||
matrix<float16_t, 4, 2> ub_load_31(uint offset) {
|
||||
const uint scalar_offset_42 = ((offset + 0u)) / 4;
|
||||
uint ubo_load_34 = buffer[scalar_offset_42 / 4][scalar_offset_42 % 4];
|
||||
uint ubo_load_34 = ub[scalar_offset_42 / 4][scalar_offset_42 % 4];
|
||||
const uint scalar_offset_43 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_35 = buffer[scalar_offset_43 / 4][scalar_offset_43 % 4];
|
||||
uint ubo_load_35 = ub[scalar_offset_43 / 4][scalar_offset_43 % 4];
|
||||
const uint scalar_offset_44 = ((offset + 8u)) / 4;
|
||||
uint ubo_load_36 = buffer[scalar_offset_44 / 4][scalar_offset_44 % 4];
|
||||
uint ubo_load_36 = ub[scalar_offset_44 / 4][scalar_offset_44 % 4];
|
||||
const uint scalar_offset_45 = ((offset + 12u)) / 4;
|
||||
uint ubo_load_37 = buffer[scalar_offset_45 / 4][scalar_offset_45 % 4];
|
||||
uint ubo_load_37 = ub[scalar_offset_45 / 4][scalar_offset_45 % 4];
|
||||
return matrix<float16_t, 4, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_34 & 0xFFFF)), float16_t(f16tof32(ubo_load_34 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_35 & 0xFFFF)), float16_t(f16tof32(ubo_load_35 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_36 & 0xFFFF)), float16_t(f16tof32(ubo_load_36 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_37 & 0xFFFF)), float16_t(f16tof32(ubo_load_37 >> 16))));
|
||||
}
|
||||
|
||||
matrix<float16_t, 4, 3> tint_symbol_34(uint4 buffer[400], uint offset) {
|
||||
matrix<float16_t, 4, 3> ub_load_32(uint offset) {
|
||||
const uint scalar_offset_46 = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_39 = buffer[scalar_offset_46 / 4];
|
||||
uint4 ubo_load_39 = ub[scalar_offset_46 / 4];
|
||||
uint2 ubo_load_38 = ((scalar_offset_46 & 2) ? ubo_load_39.zw : ubo_load_39.xy);
|
||||
vector<float16_t, 2> ubo_load_38_xz = vector<float16_t, 2>(f16tof32(ubo_load_38 & 0xFFFF));
|
||||
float16_t ubo_load_38_y = f16tof32(ubo_load_38[0] >> 16);
|
||||
const uint scalar_offset_47 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_41 = buffer[scalar_offset_47 / 4];
|
||||
uint4 ubo_load_41 = ub[scalar_offset_47 / 4];
|
||||
uint2 ubo_load_40 = ((scalar_offset_47 & 2) ? ubo_load_41.zw : ubo_load_41.xy);
|
||||
vector<float16_t, 2> ubo_load_40_xz = vector<float16_t, 2>(f16tof32(ubo_load_40 & 0xFFFF));
|
||||
float16_t ubo_load_40_y = f16tof32(ubo_load_40[0] >> 16);
|
||||
const uint scalar_offset_48 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_43 = buffer[scalar_offset_48 / 4];
|
||||
uint4 ubo_load_43 = ub[scalar_offset_48 / 4];
|
||||
uint2 ubo_load_42 = ((scalar_offset_48 & 2) ? ubo_load_43.zw : ubo_load_43.xy);
|
||||
vector<float16_t, 2> ubo_load_42_xz = vector<float16_t, 2>(f16tof32(ubo_load_42 & 0xFFFF));
|
||||
float16_t ubo_load_42_y = f16tof32(ubo_load_42[0] >> 16);
|
||||
const uint scalar_offset_49 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_45 = buffer[scalar_offset_49 / 4];
|
||||
uint4 ubo_load_45 = ub[scalar_offset_49 / 4];
|
||||
uint2 ubo_load_44 = ((scalar_offset_49 & 2) ? ubo_load_45.zw : ubo_load_45.xy);
|
||||
vector<float16_t, 2> ubo_load_44_xz = vector<float16_t, 2>(f16tof32(ubo_load_44 & 0xFFFF));
|
||||
float16_t ubo_load_44_y = f16tof32(ubo_load_44[0] >> 16);
|
||||
return matrix<float16_t, 4, 3>(vector<float16_t, 3>(ubo_load_38_xz[0], ubo_load_38_y, ubo_load_38_xz[1]), vector<float16_t, 3>(ubo_load_40_xz[0], ubo_load_40_y, ubo_load_40_xz[1]), vector<float16_t, 3>(ubo_load_42_xz[0], ubo_load_42_y, ubo_load_42_xz[1]), vector<float16_t, 3>(ubo_load_44_xz[0], ubo_load_44_y, ubo_load_44_xz[1]));
|
||||
}
|
||||
|
||||
matrix<float16_t, 4, 4> tint_symbol_35(uint4 buffer[400], uint offset) {
|
||||
matrix<float16_t, 4, 4> ub_load_33(uint offset) {
|
||||
const uint scalar_offset_50 = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_47 = buffer[scalar_offset_50 / 4];
|
||||
uint4 ubo_load_47 = ub[scalar_offset_50 / 4];
|
||||
uint2 ubo_load_46 = ((scalar_offset_50 & 2) ? ubo_load_47.zw : ubo_load_47.xy);
|
||||
vector<float16_t, 2> ubo_load_46_xz = vector<float16_t, 2>(f16tof32(ubo_load_46 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_46_yw = vector<float16_t, 2>(f16tof32(ubo_load_46 >> 16));
|
||||
const uint scalar_offset_51 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_49 = buffer[scalar_offset_51 / 4];
|
||||
uint4 ubo_load_49 = ub[scalar_offset_51 / 4];
|
||||
uint2 ubo_load_48 = ((scalar_offset_51 & 2) ? ubo_load_49.zw : ubo_load_49.xy);
|
||||
vector<float16_t, 2> ubo_load_48_xz = vector<float16_t, 2>(f16tof32(ubo_load_48 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_48_yw = vector<float16_t, 2>(f16tof32(ubo_load_48 >> 16));
|
||||
const uint scalar_offset_52 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_51 = buffer[scalar_offset_52 / 4];
|
||||
uint4 ubo_load_51 = ub[scalar_offset_52 / 4];
|
||||
uint2 ubo_load_50 = ((scalar_offset_52 & 2) ? ubo_load_51.zw : ubo_load_51.xy);
|
||||
vector<float16_t, 2> ubo_load_50_xz = vector<float16_t, 2>(f16tof32(ubo_load_50 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_50_yw = vector<float16_t, 2>(f16tof32(ubo_load_50 >> 16));
|
||||
const uint scalar_offset_53 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_53 = buffer[scalar_offset_53 / 4];
|
||||
uint4 ubo_load_53 = ub[scalar_offset_53 / 4];
|
||||
uint2 ubo_load_52 = ((scalar_offset_53 & 2) ? ubo_load_53.zw : ubo_load_53.xy);
|
||||
vector<float16_t, 2> ubo_load_52_xz = vector<float16_t, 2>(f16tof32(ubo_load_52 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_52_yw = vector<float16_t, 2>(f16tof32(ubo_load_52 >> 16));
|
||||
return matrix<float16_t, 4, 4>(vector<float16_t, 4>(ubo_load_46_xz[0], ubo_load_46_yw[0], ubo_load_46_xz[1], ubo_load_46_yw[1]), vector<float16_t, 4>(ubo_load_48_xz[0], ubo_load_48_yw[0], ubo_load_48_xz[1], ubo_load_48_yw[1]), vector<float16_t, 4>(ubo_load_50_xz[0], ubo_load_50_yw[0], ubo_load_50_xz[1], ubo_load_50_yw[1]), vector<float16_t, 4>(ubo_load_52_xz[0], ubo_load_52_yw[0], ubo_load_52_xz[1], ubo_load_52_yw[1]));
|
||||
}
|
||||
|
||||
typedef float3 tint_symbol_36_ret[2];
|
||||
tint_symbol_36_ret tint_symbol_36(uint4 buffer[400], uint offset) {
|
||||
typedef float3 ub_load_34_ret[2];
|
||||
ub_load_34_ret ub_load_34(uint offset) {
|
||||
float3 arr_1[2] = (float3[2])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 2u); i = (i + 1u)) {
|
||||
const uint scalar_offset_54 = ((offset + (i * 16u))) / 4;
|
||||
arr_1[i] = asfloat(buffer[scalar_offset_54 / 4].xyz);
|
||||
arr_1[i] = asfloat(ub[scalar_offset_54 / 4].xyz);
|
||||
}
|
||||
}
|
||||
return arr_1;
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 4, 2> tint_symbol_37_ret[2];
|
||||
tint_symbol_37_ret tint_symbol_37(uint4 buffer[400], uint offset) {
|
||||
typedef matrix<float16_t, 4, 2> ub_load_35_ret[2];
|
||||
ub_load_35_ret ub_load_35(uint offset) {
|
||||
matrix<float16_t, 4, 2> arr_2[2] = (matrix<float16_t, 4, 2>[2])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 2u); i_1 = (i_1 + 1u)) {
|
||||
arr_2[i_1] = tint_symbol_33(buffer, (offset + (i_1 * 16u)));
|
||||
arr_2[i_1] = ub_load_31((offset + (i_1 * 16u)));
|
||||
}
|
||||
}
|
||||
return arr_2;
|
||||
@@ -293,26 +293,26 @@ void main_inner(uint idx) {
|
||||
vector<float16_t, 2> ubo_load_60_xz = vector<float16_t, 2>(f16tof32(ubo_load_60 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_60_yw = vector<float16_t, 2>(f16tof32(ubo_load_60 >> 16));
|
||||
const vector<float16_t, 4> vec4_f16 = vector<float16_t, 4>(ubo_load_60_xz[0], ubo_load_60_yw[0], ubo_load_60_xz[1], ubo_load_60_yw[1]);
|
||||
const float2x2 mat2x2_f32 = tint_symbol_18(ub, ((800u * idx) + 168u));
|
||||
const float2x3 mat2x3_f32 = tint_symbol_19(ub, ((800u * idx) + 192u));
|
||||
const float2x4 mat2x4_f32 = tint_symbol_20(ub, ((800u * idx) + 224u));
|
||||
const float3x2 mat3x2_f32 = tint_symbol_21(ub, ((800u * idx) + 256u));
|
||||
const float3x3 mat3x3_f32 = tint_symbol_22(ub, ((800u * idx) + 288u));
|
||||
const float3x4 mat3x4_f32 = tint_symbol_23(ub, ((800u * idx) + 336u));
|
||||
const float4x2 mat4x2_f32 = tint_symbol_24(ub, ((800u * idx) + 384u));
|
||||
const float4x3 mat4x3_f32 = tint_symbol_25(ub, ((800u * idx) + 416u));
|
||||
const float4x4 mat4x4_f32 = tint_symbol_26(ub, ((800u * idx) + 480u));
|
||||
const matrix<float16_t, 2, 2> mat2x2_f16 = tint_symbol_27(ub, ((800u * idx) + 544u));
|
||||
const matrix<float16_t, 2, 3> mat2x3_f16 = tint_symbol_28(ub, ((800u * idx) + 552u));
|
||||
const matrix<float16_t, 2, 4> mat2x4_f16 = tint_symbol_29(ub, ((800u * idx) + 568u));
|
||||
const matrix<float16_t, 3, 2> mat3x2_f16 = tint_symbol_30(ub, ((800u * idx) + 584u));
|
||||
const matrix<float16_t, 3, 3> mat3x3_f16 = tint_symbol_31(ub, ((800u * idx) + 600u));
|
||||
const matrix<float16_t, 3, 4> mat3x4_f16 = tint_symbol_32(ub, ((800u * idx) + 624u));
|
||||
const matrix<float16_t, 4, 2> mat4x2_f16 = tint_symbol_33(ub, ((800u * idx) + 648u));
|
||||
const matrix<float16_t, 4, 3> mat4x3_f16 = tint_symbol_34(ub, ((800u * idx) + 664u));
|
||||
const matrix<float16_t, 4, 4> mat4x4_f16 = tint_symbol_35(ub, ((800u * idx) + 696u));
|
||||
const float3 arr2_vec3_f32[2] = tint_symbol_36(ub, ((800u * idx) + 736u));
|
||||
const matrix<float16_t, 4, 2> arr2_mat4x2_f16[2] = tint_symbol_37(ub, ((800u * idx) + 768u));
|
||||
const float2x2 mat2x2_f32 = ub_load_16(((800u * idx) + 168u));
|
||||
const float2x3 mat2x3_f32 = ub_load_17(((800u * idx) + 192u));
|
||||
const float2x4 mat2x4_f32 = ub_load_18(((800u * idx) + 224u));
|
||||
const float3x2 mat3x2_f32 = ub_load_19(((800u * idx) + 256u));
|
||||
const float3x3 mat3x3_f32 = ub_load_20(((800u * idx) + 288u));
|
||||
const float3x4 mat3x4_f32 = ub_load_21(((800u * idx) + 336u));
|
||||
const float4x2 mat4x2_f32 = ub_load_22(((800u * idx) + 384u));
|
||||
const float4x3 mat4x3_f32 = ub_load_23(((800u * idx) + 416u));
|
||||
const float4x4 mat4x4_f32 = ub_load_24(((800u * idx) + 480u));
|
||||
const matrix<float16_t, 2, 2> mat2x2_f16 = ub_load_25(((800u * idx) + 544u));
|
||||
const matrix<float16_t, 2, 3> mat2x3_f16 = ub_load_26(((800u * idx) + 552u));
|
||||
const matrix<float16_t, 2, 4> mat2x4_f16 = ub_load_27(((800u * idx) + 568u));
|
||||
const matrix<float16_t, 3, 2> mat3x2_f16 = ub_load_28(((800u * idx) + 584u));
|
||||
const matrix<float16_t, 3, 3> mat3x3_f16 = ub_load_29(((800u * idx) + 600u));
|
||||
const matrix<float16_t, 3, 4> mat3x4_f16 = ub_load_30(((800u * idx) + 624u));
|
||||
const matrix<float16_t, 4, 2> mat4x2_f16 = ub_load_31(((800u * idx) + 648u));
|
||||
const matrix<float16_t, 4, 3> mat4x3_f16 = ub_load_32(((800u * idx) + 664u));
|
||||
const matrix<float16_t, 4, 4> mat4x4_f16 = ub_load_33(((800u * idx) + 696u));
|
||||
const float3 arr2_vec3_f32[2] = ub_load_34(((800u * idx) + 736u));
|
||||
const matrix<float16_t, 4, 2> arr2_mat4x2_f16[2] = ub_load_35(((800u * idx) + 768u));
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
@@ -320,6 +320,3 @@ void main(tint_symbol_1 tint_symbol) {
|
||||
main_inner(tint_symbol.idx);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000183446E4210(81,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -10,260 +10,260 @@ cbuffer cbuffer_ub : register(b0, space0) {
|
||||
uint4 ub[55];
|
||||
};
|
||||
|
||||
float2x2 tint_symbol_16(uint4 buffer[55], uint offset) {
|
||||
float2x2 ub_load_16(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load = ub[scalar_offset / 4];
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_1 = ub[scalar_offset_1 / 4];
|
||||
return float2x2(asfloat(((scalar_offset & 2) ? ubo_load.zw : ubo_load.xy)), asfloat(((scalar_offset_1 & 2) ? ubo_load_1.zw : ubo_load_1.xy)));
|
||||
}
|
||||
|
||||
float2x3 tint_symbol_17(uint4 buffer[55], uint offset) {
|
||||
float2x3 ub_load_17(uint offset) {
|
||||
const uint scalar_offset_2 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_3 = ((offset + 16u)) / 4;
|
||||
return float2x3(asfloat(buffer[scalar_offset_2 / 4].xyz), asfloat(buffer[scalar_offset_3 / 4].xyz));
|
||||
return float2x3(asfloat(ub[scalar_offset_2 / 4].xyz), asfloat(ub[scalar_offset_3 / 4].xyz));
|
||||
}
|
||||
|
||||
float2x4 tint_symbol_18(uint4 buffer[55], uint offset) {
|
||||
float2x4 ub_load_18(uint offset) {
|
||||
const uint scalar_offset_4 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_5 = ((offset + 16u)) / 4;
|
||||
return float2x4(asfloat(buffer[scalar_offset_4 / 4]), asfloat(buffer[scalar_offset_5 / 4]));
|
||||
return float2x4(asfloat(ub[scalar_offset_4 / 4]), asfloat(ub[scalar_offset_5 / 4]));
|
||||
}
|
||||
|
||||
float3x2 tint_symbol_19(uint4 buffer[55], uint offset) {
|
||||
float3x2 ub_load_19(uint offset) {
|
||||
const uint scalar_offset_6 = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_2 = buffer[scalar_offset_6 / 4];
|
||||
uint4 ubo_load_2 = ub[scalar_offset_6 / 4];
|
||||
const uint scalar_offset_7 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_7 / 4];
|
||||
uint4 ubo_load_3 = ub[scalar_offset_7 / 4];
|
||||
const uint scalar_offset_8 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_4 = buffer[scalar_offset_8 / 4];
|
||||
uint4 ubo_load_4 = ub[scalar_offset_8 / 4];
|
||||
return float3x2(asfloat(((scalar_offset_6 & 2) ? ubo_load_2.zw : ubo_load_2.xy)), asfloat(((scalar_offset_7 & 2) ? ubo_load_3.zw : ubo_load_3.xy)), asfloat(((scalar_offset_8 & 2) ? ubo_load_4.zw : ubo_load_4.xy)));
|
||||
}
|
||||
|
||||
float3x3 tint_symbol_20(uint4 buffer[55], uint offset) {
|
||||
float3x3 ub_load_20(uint offset) {
|
||||
const uint scalar_offset_9 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_10 = ((offset + 16u)) / 4;
|
||||
const uint scalar_offset_11 = ((offset + 32u)) / 4;
|
||||
return float3x3(asfloat(buffer[scalar_offset_9 / 4].xyz), asfloat(buffer[scalar_offset_10 / 4].xyz), asfloat(buffer[scalar_offset_11 / 4].xyz));
|
||||
return float3x3(asfloat(ub[scalar_offset_9 / 4].xyz), asfloat(ub[scalar_offset_10 / 4].xyz), asfloat(ub[scalar_offset_11 / 4].xyz));
|
||||
}
|
||||
|
||||
float3x4 tint_symbol_21(uint4 buffer[55], uint offset) {
|
||||
float3x4 ub_load_21(uint offset) {
|
||||
const uint scalar_offset_12 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_13 = ((offset + 16u)) / 4;
|
||||
const uint scalar_offset_14 = ((offset + 32u)) / 4;
|
||||
return float3x4(asfloat(buffer[scalar_offset_12 / 4]), asfloat(buffer[scalar_offset_13 / 4]), asfloat(buffer[scalar_offset_14 / 4]));
|
||||
return float3x4(asfloat(ub[scalar_offset_12 / 4]), asfloat(ub[scalar_offset_13 / 4]), asfloat(ub[scalar_offset_14 / 4]));
|
||||
}
|
||||
|
||||
float4x2 tint_symbol_22(uint4 buffer[55], uint offset) {
|
||||
float4x2 ub_load_22(uint offset) {
|
||||
const uint scalar_offset_15 = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_15 / 4];
|
||||
uint4 ubo_load_5 = ub[scalar_offset_15 / 4];
|
||||
const uint scalar_offset_16 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_6 = buffer[scalar_offset_16 / 4];
|
||||
uint4 ubo_load_6 = ub[scalar_offset_16 / 4];
|
||||
const uint scalar_offset_17 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_17 / 4];
|
||||
uint4 ubo_load_7 = ub[scalar_offset_17 / 4];
|
||||
const uint scalar_offset_18 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_8 = buffer[scalar_offset_18 / 4];
|
||||
uint4 ubo_load_8 = ub[scalar_offset_18 / 4];
|
||||
return float4x2(asfloat(((scalar_offset_15 & 2) ? ubo_load_5.zw : ubo_load_5.xy)), asfloat(((scalar_offset_16 & 2) ? ubo_load_6.zw : ubo_load_6.xy)), asfloat(((scalar_offset_17 & 2) ? ubo_load_7.zw : ubo_load_7.xy)), asfloat(((scalar_offset_18 & 2) ? ubo_load_8.zw : ubo_load_8.xy)));
|
||||
}
|
||||
|
||||
float4x3 tint_symbol_23(uint4 buffer[55], uint offset) {
|
||||
float4x3 ub_load_23(uint offset) {
|
||||
const uint scalar_offset_19 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_20 = ((offset + 16u)) / 4;
|
||||
const uint scalar_offset_21 = ((offset + 32u)) / 4;
|
||||
const uint scalar_offset_22 = ((offset + 48u)) / 4;
|
||||
return float4x3(asfloat(buffer[scalar_offset_19 / 4].xyz), asfloat(buffer[scalar_offset_20 / 4].xyz), asfloat(buffer[scalar_offset_21 / 4].xyz), asfloat(buffer[scalar_offset_22 / 4].xyz));
|
||||
return float4x3(asfloat(ub[scalar_offset_19 / 4].xyz), asfloat(ub[scalar_offset_20 / 4].xyz), asfloat(ub[scalar_offset_21 / 4].xyz), asfloat(ub[scalar_offset_22 / 4].xyz));
|
||||
}
|
||||
|
||||
float4x4 tint_symbol_24(uint4 buffer[55], uint offset) {
|
||||
float4x4 ub_load_24(uint offset) {
|
||||
const uint scalar_offset_23 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_24 = ((offset + 16u)) / 4;
|
||||
const uint scalar_offset_25 = ((offset + 32u)) / 4;
|
||||
const uint scalar_offset_26 = ((offset + 48u)) / 4;
|
||||
return float4x4(asfloat(buffer[scalar_offset_23 / 4]), asfloat(buffer[scalar_offset_24 / 4]), asfloat(buffer[scalar_offset_25 / 4]), asfloat(buffer[scalar_offset_26 / 4]));
|
||||
return float4x4(asfloat(ub[scalar_offset_23 / 4]), asfloat(ub[scalar_offset_24 / 4]), asfloat(ub[scalar_offset_25 / 4]), asfloat(ub[scalar_offset_26 / 4]));
|
||||
}
|
||||
|
||||
matrix<float16_t, 2, 2> tint_symbol_25(uint4 buffer[55], uint offset) {
|
||||
matrix<float16_t, 2, 2> ub_load_25(uint offset) {
|
||||
const uint scalar_offset_27 = ((offset + 0u)) / 4;
|
||||
uint ubo_load_9 = buffer[scalar_offset_27 / 4][scalar_offset_27 % 4];
|
||||
uint ubo_load_9 = ub[scalar_offset_27 / 4][scalar_offset_27 % 4];
|
||||
const uint scalar_offset_28 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_10 = buffer[scalar_offset_28 / 4][scalar_offset_28 % 4];
|
||||
uint ubo_load_10 = ub[scalar_offset_28 / 4][scalar_offset_28 % 4];
|
||||
return matrix<float16_t, 2, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_9 & 0xFFFF)), float16_t(f16tof32(ubo_load_9 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_10 & 0xFFFF)), float16_t(f16tof32(ubo_load_10 >> 16))));
|
||||
}
|
||||
|
||||
matrix<float16_t, 2, 3> tint_symbol_26(uint4 buffer[55], uint offset) {
|
||||
matrix<float16_t, 2, 3> ub_load_26(uint offset) {
|
||||
const uint scalar_offset_29 = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_12 = buffer[scalar_offset_29 / 4];
|
||||
uint4 ubo_load_12 = ub[scalar_offset_29 / 4];
|
||||
uint2 ubo_load_11 = ((scalar_offset_29 & 2) ? ubo_load_12.zw : ubo_load_12.xy);
|
||||
vector<float16_t, 2> ubo_load_11_xz = vector<float16_t, 2>(f16tof32(ubo_load_11 & 0xFFFF));
|
||||
float16_t ubo_load_11_y = f16tof32(ubo_load_11[0] >> 16);
|
||||
const uint scalar_offset_30 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_14 = buffer[scalar_offset_30 / 4];
|
||||
uint4 ubo_load_14 = ub[scalar_offset_30 / 4];
|
||||
uint2 ubo_load_13 = ((scalar_offset_30 & 2) ? ubo_load_14.zw : ubo_load_14.xy);
|
||||
vector<float16_t, 2> ubo_load_13_xz = vector<float16_t, 2>(f16tof32(ubo_load_13 & 0xFFFF));
|
||||
float16_t ubo_load_13_y = f16tof32(ubo_load_13[0] >> 16);
|
||||
return matrix<float16_t, 2, 3>(vector<float16_t, 3>(ubo_load_11_xz[0], ubo_load_11_y, ubo_load_11_xz[1]), vector<float16_t, 3>(ubo_load_13_xz[0], ubo_load_13_y, ubo_load_13_xz[1]));
|
||||
}
|
||||
|
||||
matrix<float16_t, 2, 4> tint_symbol_27(uint4 buffer[55], uint offset) {
|
||||
matrix<float16_t, 2, 4> ub_load_27(uint offset) {
|
||||
const uint scalar_offset_31 = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_16 = buffer[scalar_offset_31 / 4];
|
||||
uint4 ubo_load_16 = ub[scalar_offset_31 / 4];
|
||||
uint2 ubo_load_15 = ((scalar_offset_31 & 2) ? ubo_load_16.zw : ubo_load_16.xy);
|
||||
vector<float16_t, 2> ubo_load_15_xz = vector<float16_t, 2>(f16tof32(ubo_load_15 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_15_yw = vector<float16_t, 2>(f16tof32(ubo_load_15 >> 16));
|
||||
const uint scalar_offset_32 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_18 = buffer[scalar_offset_32 / 4];
|
||||
uint4 ubo_load_18 = ub[scalar_offset_32 / 4];
|
||||
uint2 ubo_load_17 = ((scalar_offset_32 & 2) ? ubo_load_18.zw : ubo_load_18.xy);
|
||||
vector<float16_t, 2> ubo_load_17_xz = vector<float16_t, 2>(f16tof32(ubo_load_17 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_17_yw = vector<float16_t, 2>(f16tof32(ubo_load_17 >> 16));
|
||||
return matrix<float16_t, 2, 4>(vector<float16_t, 4>(ubo_load_15_xz[0], ubo_load_15_yw[0], ubo_load_15_xz[1], ubo_load_15_yw[1]), vector<float16_t, 4>(ubo_load_17_xz[0], ubo_load_17_yw[0], ubo_load_17_xz[1], ubo_load_17_yw[1]));
|
||||
}
|
||||
|
||||
matrix<float16_t, 3, 2> tint_symbol_28(uint4 buffer[55], uint offset) {
|
||||
matrix<float16_t, 3, 2> ub_load_28(uint offset) {
|
||||
const uint scalar_offset_33 = ((offset + 0u)) / 4;
|
||||
uint ubo_load_19 = buffer[scalar_offset_33 / 4][scalar_offset_33 % 4];
|
||||
uint ubo_load_19 = ub[scalar_offset_33 / 4][scalar_offset_33 % 4];
|
||||
const uint scalar_offset_34 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_20 = buffer[scalar_offset_34 / 4][scalar_offset_34 % 4];
|
||||
uint ubo_load_20 = ub[scalar_offset_34 / 4][scalar_offset_34 % 4];
|
||||
const uint scalar_offset_35 = ((offset + 8u)) / 4;
|
||||
uint ubo_load_21 = buffer[scalar_offset_35 / 4][scalar_offset_35 % 4];
|
||||
uint ubo_load_21 = ub[scalar_offset_35 / 4][scalar_offset_35 % 4];
|
||||
return matrix<float16_t, 3, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_19 & 0xFFFF)), float16_t(f16tof32(ubo_load_19 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_20 & 0xFFFF)), float16_t(f16tof32(ubo_load_20 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_21 & 0xFFFF)), float16_t(f16tof32(ubo_load_21 >> 16))));
|
||||
}
|
||||
|
||||
matrix<float16_t, 3, 3> tint_symbol_29(uint4 buffer[55], uint offset) {
|
||||
matrix<float16_t, 3, 3> ub_load_29(uint offset) {
|
||||
const uint scalar_offset_36 = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_23 = buffer[scalar_offset_36 / 4];
|
||||
uint4 ubo_load_23 = ub[scalar_offset_36 / 4];
|
||||
uint2 ubo_load_22 = ((scalar_offset_36 & 2) ? ubo_load_23.zw : ubo_load_23.xy);
|
||||
vector<float16_t, 2> ubo_load_22_xz = vector<float16_t, 2>(f16tof32(ubo_load_22 & 0xFFFF));
|
||||
float16_t ubo_load_22_y = f16tof32(ubo_load_22[0] >> 16);
|
||||
const uint scalar_offset_37 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_25 = buffer[scalar_offset_37 / 4];
|
||||
uint4 ubo_load_25 = ub[scalar_offset_37 / 4];
|
||||
uint2 ubo_load_24 = ((scalar_offset_37 & 2) ? ubo_load_25.zw : ubo_load_25.xy);
|
||||
vector<float16_t, 2> ubo_load_24_xz = vector<float16_t, 2>(f16tof32(ubo_load_24 & 0xFFFF));
|
||||
float16_t ubo_load_24_y = f16tof32(ubo_load_24[0] >> 16);
|
||||
const uint scalar_offset_38 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_27 = buffer[scalar_offset_38 / 4];
|
||||
uint4 ubo_load_27 = ub[scalar_offset_38 / 4];
|
||||
uint2 ubo_load_26 = ((scalar_offset_38 & 2) ? ubo_load_27.zw : ubo_load_27.xy);
|
||||
vector<float16_t, 2> ubo_load_26_xz = vector<float16_t, 2>(f16tof32(ubo_load_26 & 0xFFFF));
|
||||
float16_t ubo_load_26_y = f16tof32(ubo_load_26[0] >> 16);
|
||||
return matrix<float16_t, 3, 3>(vector<float16_t, 3>(ubo_load_22_xz[0], ubo_load_22_y, ubo_load_22_xz[1]), vector<float16_t, 3>(ubo_load_24_xz[0], ubo_load_24_y, ubo_load_24_xz[1]), vector<float16_t, 3>(ubo_load_26_xz[0], ubo_load_26_y, ubo_load_26_xz[1]));
|
||||
}
|
||||
|
||||
matrix<float16_t, 3, 4> tint_symbol_30(uint4 buffer[55], uint offset) {
|
||||
matrix<float16_t, 3, 4> ub_load_30(uint offset) {
|
||||
const uint scalar_offset_39 = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_29 = buffer[scalar_offset_39 / 4];
|
||||
uint4 ubo_load_29 = ub[scalar_offset_39 / 4];
|
||||
uint2 ubo_load_28 = ((scalar_offset_39 & 2) ? ubo_load_29.zw : ubo_load_29.xy);
|
||||
vector<float16_t, 2> ubo_load_28_xz = vector<float16_t, 2>(f16tof32(ubo_load_28 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_28_yw = vector<float16_t, 2>(f16tof32(ubo_load_28 >> 16));
|
||||
const uint scalar_offset_40 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_31 = buffer[scalar_offset_40 / 4];
|
||||
uint4 ubo_load_31 = ub[scalar_offset_40 / 4];
|
||||
uint2 ubo_load_30 = ((scalar_offset_40 & 2) ? ubo_load_31.zw : ubo_load_31.xy);
|
||||
vector<float16_t, 2> ubo_load_30_xz = vector<float16_t, 2>(f16tof32(ubo_load_30 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_30_yw = vector<float16_t, 2>(f16tof32(ubo_load_30 >> 16));
|
||||
const uint scalar_offset_41 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_33 = buffer[scalar_offset_41 / 4];
|
||||
uint4 ubo_load_33 = ub[scalar_offset_41 / 4];
|
||||
uint2 ubo_load_32 = ((scalar_offset_41 & 2) ? ubo_load_33.zw : ubo_load_33.xy);
|
||||
vector<float16_t, 2> ubo_load_32_xz = vector<float16_t, 2>(f16tof32(ubo_load_32 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_32_yw = vector<float16_t, 2>(f16tof32(ubo_load_32 >> 16));
|
||||
return matrix<float16_t, 3, 4>(vector<float16_t, 4>(ubo_load_28_xz[0], ubo_load_28_yw[0], ubo_load_28_xz[1], ubo_load_28_yw[1]), vector<float16_t, 4>(ubo_load_30_xz[0], ubo_load_30_yw[0], ubo_load_30_xz[1], ubo_load_30_yw[1]), vector<float16_t, 4>(ubo_load_32_xz[0], ubo_load_32_yw[0], ubo_load_32_xz[1], ubo_load_32_yw[1]));
|
||||
}
|
||||
|
||||
matrix<float16_t, 4, 2> tint_symbol_31(uint4 buffer[55], uint offset) {
|
||||
matrix<float16_t, 4, 2> ub_load_31(uint offset) {
|
||||
const uint scalar_offset_42 = ((offset + 0u)) / 4;
|
||||
uint ubo_load_34 = buffer[scalar_offset_42 / 4][scalar_offset_42 % 4];
|
||||
uint ubo_load_34 = ub[scalar_offset_42 / 4][scalar_offset_42 % 4];
|
||||
const uint scalar_offset_43 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_35 = buffer[scalar_offset_43 / 4][scalar_offset_43 % 4];
|
||||
uint ubo_load_35 = ub[scalar_offset_43 / 4][scalar_offset_43 % 4];
|
||||
const uint scalar_offset_44 = ((offset + 8u)) / 4;
|
||||
uint ubo_load_36 = buffer[scalar_offset_44 / 4][scalar_offset_44 % 4];
|
||||
uint ubo_load_36 = ub[scalar_offset_44 / 4][scalar_offset_44 % 4];
|
||||
const uint scalar_offset_45 = ((offset + 12u)) / 4;
|
||||
uint ubo_load_37 = buffer[scalar_offset_45 / 4][scalar_offset_45 % 4];
|
||||
uint ubo_load_37 = ub[scalar_offset_45 / 4][scalar_offset_45 % 4];
|
||||
return matrix<float16_t, 4, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_34 & 0xFFFF)), float16_t(f16tof32(ubo_load_34 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_35 & 0xFFFF)), float16_t(f16tof32(ubo_load_35 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_36 & 0xFFFF)), float16_t(f16tof32(ubo_load_36 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_37 & 0xFFFF)), float16_t(f16tof32(ubo_load_37 >> 16))));
|
||||
}
|
||||
|
||||
matrix<float16_t, 4, 3> tint_symbol_32(uint4 buffer[55], uint offset) {
|
||||
matrix<float16_t, 4, 3> ub_load_32(uint offset) {
|
||||
const uint scalar_offset_46 = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_39 = buffer[scalar_offset_46 / 4];
|
||||
uint4 ubo_load_39 = ub[scalar_offset_46 / 4];
|
||||
uint2 ubo_load_38 = ((scalar_offset_46 & 2) ? ubo_load_39.zw : ubo_load_39.xy);
|
||||
vector<float16_t, 2> ubo_load_38_xz = vector<float16_t, 2>(f16tof32(ubo_load_38 & 0xFFFF));
|
||||
float16_t ubo_load_38_y = f16tof32(ubo_load_38[0] >> 16);
|
||||
const uint scalar_offset_47 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_41 = buffer[scalar_offset_47 / 4];
|
||||
uint4 ubo_load_41 = ub[scalar_offset_47 / 4];
|
||||
uint2 ubo_load_40 = ((scalar_offset_47 & 2) ? ubo_load_41.zw : ubo_load_41.xy);
|
||||
vector<float16_t, 2> ubo_load_40_xz = vector<float16_t, 2>(f16tof32(ubo_load_40 & 0xFFFF));
|
||||
float16_t ubo_load_40_y = f16tof32(ubo_load_40[0] >> 16);
|
||||
const uint scalar_offset_48 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_43 = buffer[scalar_offset_48 / 4];
|
||||
uint4 ubo_load_43 = ub[scalar_offset_48 / 4];
|
||||
uint2 ubo_load_42 = ((scalar_offset_48 & 2) ? ubo_load_43.zw : ubo_load_43.xy);
|
||||
vector<float16_t, 2> ubo_load_42_xz = vector<float16_t, 2>(f16tof32(ubo_load_42 & 0xFFFF));
|
||||
float16_t ubo_load_42_y = f16tof32(ubo_load_42[0] >> 16);
|
||||
const uint scalar_offset_49 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_45 = buffer[scalar_offset_49 / 4];
|
||||
uint4 ubo_load_45 = ub[scalar_offset_49 / 4];
|
||||
uint2 ubo_load_44 = ((scalar_offset_49 & 2) ? ubo_load_45.zw : ubo_load_45.xy);
|
||||
vector<float16_t, 2> ubo_load_44_xz = vector<float16_t, 2>(f16tof32(ubo_load_44 & 0xFFFF));
|
||||
float16_t ubo_load_44_y = f16tof32(ubo_load_44[0] >> 16);
|
||||
return matrix<float16_t, 4, 3>(vector<float16_t, 3>(ubo_load_38_xz[0], ubo_load_38_y, ubo_load_38_xz[1]), vector<float16_t, 3>(ubo_load_40_xz[0], ubo_load_40_y, ubo_load_40_xz[1]), vector<float16_t, 3>(ubo_load_42_xz[0], ubo_load_42_y, ubo_load_42_xz[1]), vector<float16_t, 3>(ubo_load_44_xz[0], ubo_load_44_y, ubo_load_44_xz[1]));
|
||||
}
|
||||
|
||||
matrix<float16_t, 4, 4> tint_symbol_33(uint4 buffer[55], uint offset) {
|
||||
matrix<float16_t, 4, 4> ub_load_33(uint offset) {
|
||||
const uint scalar_offset_50 = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_47 = buffer[scalar_offset_50 / 4];
|
||||
uint4 ubo_load_47 = ub[scalar_offset_50 / 4];
|
||||
uint2 ubo_load_46 = ((scalar_offset_50 & 2) ? ubo_load_47.zw : ubo_load_47.xy);
|
||||
vector<float16_t, 2> ubo_load_46_xz = vector<float16_t, 2>(f16tof32(ubo_load_46 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_46_yw = vector<float16_t, 2>(f16tof32(ubo_load_46 >> 16));
|
||||
const uint scalar_offset_51 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_49 = buffer[scalar_offset_51 / 4];
|
||||
uint4 ubo_load_49 = ub[scalar_offset_51 / 4];
|
||||
uint2 ubo_load_48 = ((scalar_offset_51 & 2) ? ubo_load_49.zw : ubo_load_49.xy);
|
||||
vector<float16_t, 2> ubo_load_48_xz = vector<float16_t, 2>(f16tof32(ubo_load_48 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_48_yw = vector<float16_t, 2>(f16tof32(ubo_load_48 >> 16));
|
||||
const uint scalar_offset_52 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_51 = buffer[scalar_offset_52 / 4];
|
||||
uint4 ubo_load_51 = ub[scalar_offset_52 / 4];
|
||||
uint2 ubo_load_50 = ((scalar_offset_52 & 2) ? ubo_load_51.zw : ubo_load_51.xy);
|
||||
vector<float16_t, 2> ubo_load_50_xz = vector<float16_t, 2>(f16tof32(ubo_load_50 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_50_yw = vector<float16_t, 2>(f16tof32(ubo_load_50 >> 16));
|
||||
const uint scalar_offset_53 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_53 = buffer[scalar_offset_53 / 4];
|
||||
uint4 ubo_load_53 = ub[scalar_offset_53 / 4];
|
||||
uint2 ubo_load_52 = ((scalar_offset_53 & 2) ? ubo_load_53.zw : ubo_load_53.xy);
|
||||
vector<float16_t, 2> ubo_load_52_xz = vector<float16_t, 2>(f16tof32(ubo_load_52 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_52_yw = vector<float16_t, 2>(f16tof32(ubo_load_52 >> 16));
|
||||
return matrix<float16_t, 4, 4>(vector<float16_t, 4>(ubo_load_46_xz[0], ubo_load_46_yw[0], ubo_load_46_xz[1], ubo_load_46_yw[1]), vector<float16_t, 4>(ubo_load_48_xz[0], ubo_load_48_yw[0], ubo_load_48_xz[1], ubo_load_48_yw[1]), vector<float16_t, 4>(ubo_load_50_xz[0], ubo_load_50_yw[0], ubo_load_50_xz[1], ubo_load_50_yw[1]), vector<float16_t, 4>(ubo_load_52_xz[0], ubo_load_52_yw[0], ubo_load_52_xz[1], ubo_load_52_yw[1]));
|
||||
}
|
||||
|
||||
typedef float3 tint_symbol_34_ret[2];
|
||||
tint_symbol_34_ret tint_symbol_34(uint4 buffer[55], uint offset) {
|
||||
typedef float3 ub_load_34_ret[2];
|
||||
ub_load_34_ret ub_load_34(uint offset) {
|
||||
float3 arr[2] = (float3[2])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 2u); i = (i + 1u)) {
|
||||
const uint scalar_offset_54 = ((offset + (i * 16u))) / 4;
|
||||
arr[i] = asfloat(buffer[scalar_offset_54 / 4].xyz);
|
||||
arr[i] = asfloat(ub[scalar_offset_54 / 4].xyz);
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 4, 2> tint_symbol_35_ret[2];
|
||||
tint_symbol_35_ret tint_symbol_35(uint4 buffer[55], uint offset) {
|
||||
typedef matrix<float16_t, 4, 2> ub_load_35_ret[2];
|
||||
ub_load_35_ret ub_load_35(uint offset) {
|
||||
matrix<float16_t, 4, 2> arr_1[2] = (matrix<float16_t, 4, 2>[2])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 2u); i_1 = (i_1 + 1u)) {
|
||||
arr_1[i_1] = tint_symbol_31(buffer, (offset + (i_1 * 16u)));
|
||||
arr_1[i_1] = ub_load_31((offset + (i_1 * 16u)));
|
||||
}
|
||||
}
|
||||
return arr_1;
|
||||
}
|
||||
|
||||
Inner tint_symbol_36(uint4 buffer[55], uint offset) {
|
||||
Inner ub_load_36(uint offset) {
|
||||
const uint scalar_offset_55 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_56 = ((offset + 4u)) / 4;
|
||||
const uint scalar_offset_bytes = ((offset + 8u));
|
||||
const uint scalar_offset_index = scalar_offset_bytes / 4;
|
||||
const Inner tint_symbol_38 = {asint(buffer[scalar_offset_55 / 4][scalar_offset_55 % 4]), asfloat(buffer[scalar_offset_56 / 4][scalar_offset_56 % 4]), float16_t(f16tof32(((buffer[scalar_offset_index / 4][scalar_offset_index % 4] >> (scalar_offset_bytes % 4 == 0 ? 0 : 16)) & 0xFFFF)))};
|
||||
return tint_symbol_38;
|
||||
const Inner tint_symbol = {asint(ub[scalar_offset_55 / 4][scalar_offset_55 % 4]), asfloat(ub[scalar_offset_56 / 4][scalar_offset_56 % 4]), float16_t(f16tof32(((ub[scalar_offset_index / 4][scalar_offset_index % 4] >> (scalar_offset_bytes % 4 == 0 ? 0 : 16)) & 0xFFFF)))};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef Inner tint_symbol_37_ret[4];
|
||||
tint_symbol_37_ret tint_symbol_37(uint4 buffer[55], uint offset) {
|
||||
typedef Inner ub_load_37_ret[4];
|
||||
ub_load_37_ret ub_load_37(uint offset) {
|
||||
Inner arr_2[4] = (Inner[4])0;
|
||||
{
|
||||
for(uint i_2 = 0u; (i_2 < 4u); i_2 = (i_2 + 1u)) {
|
||||
arr_2[i_2] = tint_symbol_36(buffer, (offset + (i_2 * 16u)));
|
||||
arr_2[i_2] = ub_load_36((offset + (i_2 * 16u)));
|
||||
}
|
||||
}
|
||||
return arr_2;
|
||||
@@ -294,30 +294,27 @@ void main() {
|
||||
vector<float16_t, 2> ubo_load_56_xz = vector<float16_t, 2>(f16tof32(ubo_load_56 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_56_yw = vector<float16_t, 2>(f16tof32(ubo_load_56 >> 16));
|
||||
const vector<float16_t, 4> vec4_f16 = vector<float16_t, 4>(ubo_load_56_xz[0], ubo_load_56_yw[0], ubo_load_56_xz[1], ubo_load_56_yw[1]);
|
||||
const float2x2 mat2x2_f32 = tint_symbol_16(ub, 168u);
|
||||
const float2x3 mat2x3_f32 = tint_symbol_17(ub, 192u);
|
||||
const float2x4 mat2x4_f32 = tint_symbol_18(ub, 224u);
|
||||
const float3x2 mat3x2_f32 = tint_symbol_19(ub, 256u);
|
||||
const float3x3 mat3x3_f32 = tint_symbol_20(ub, 288u);
|
||||
const float3x4 mat3x4_f32 = tint_symbol_21(ub, 336u);
|
||||
const float4x2 mat4x2_f32 = tint_symbol_22(ub, 384u);
|
||||
const float4x3 mat4x3_f32 = tint_symbol_23(ub, 416u);
|
||||
const float4x4 mat4x4_f32 = tint_symbol_24(ub, 480u);
|
||||
const matrix<float16_t, 2, 2> mat2x2_f16 = tint_symbol_25(ub, 544u);
|
||||
const matrix<float16_t, 2, 3> mat2x3_f16 = tint_symbol_26(ub, 552u);
|
||||
const matrix<float16_t, 2, 4> mat2x4_f16 = tint_symbol_27(ub, 568u);
|
||||
const matrix<float16_t, 3, 2> mat3x2_f16 = tint_symbol_28(ub, 584u);
|
||||
const matrix<float16_t, 3, 3> mat3x3_f16 = tint_symbol_29(ub, 600u);
|
||||
const matrix<float16_t, 3, 4> mat3x4_f16 = tint_symbol_30(ub, 624u);
|
||||
const matrix<float16_t, 4, 2> mat4x2_f16 = tint_symbol_31(ub, 648u);
|
||||
const matrix<float16_t, 4, 3> mat4x3_f16 = tint_symbol_32(ub, 664u);
|
||||
const matrix<float16_t, 4, 4> mat4x4_f16 = tint_symbol_33(ub, 696u);
|
||||
const float3 arr2_vec3_f32[2] = tint_symbol_34(ub, 736u);
|
||||
const matrix<float16_t, 4, 2> arr2_mat4x2_f16[2] = tint_symbol_35(ub, 768u);
|
||||
const Inner struct_inner = tint_symbol_36(ub, 800u);
|
||||
const Inner array_struct_inner[4] = tint_symbol_37(ub, 816u);
|
||||
const float2x2 mat2x2_f32 = ub_load_16(168u);
|
||||
const float2x3 mat2x3_f32 = ub_load_17(192u);
|
||||
const float2x4 mat2x4_f32 = ub_load_18(224u);
|
||||
const float3x2 mat3x2_f32 = ub_load_19(256u);
|
||||
const float3x3 mat3x3_f32 = ub_load_20(288u);
|
||||
const float3x4 mat3x4_f32 = ub_load_21(336u);
|
||||
const float4x2 mat4x2_f32 = ub_load_22(384u);
|
||||
const float4x3 mat4x3_f32 = ub_load_23(416u);
|
||||
const float4x4 mat4x4_f32 = ub_load_24(480u);
|
||||
const matrix<float16_t, 2, 2> mat2x2_f16 = ub_load_25(544u);
|
||||
const matrix<float16_t, 2, 3> mat2x3_f16 = ub_load_26(552u);
|
||||
const matrix<float16_t, 2, 4> mat2x4_f16 = ub_load_27(568u);
|
||||
const matrix<float16_t, 3, 2> mat3x2_f16 = ub_load_28(584u);
|
||||
const matrix<float16_t, 3, 3> mat3x3_f16 = ub_load_29(600u);
|
||||
const matrix<float16_t, 3, 4> mat3x4_f16 = ub_load_30(624u);
|
||||
const matrix<float16_t, 4, 2> mat4x2_f16 = ub_load_31(648u);
|
||||
const matrix<float16_t, 4, 3> mat4x3_f16 = ub_load_32(664u);
|
||||
const matrix<float16_t, 4, 4> mat4x4_f16 = ub_load_33(696u);
|
||||
const float3 arr2_vec3_f32[2] = ub_load_34(736u);
|
||||
const matrix<float16_t, 4, 2> arr2_mat4x2_f16[2] = ub_load_35(768u);
|
||||
const Inner struct_inner = ub_load_36(800u);
|
||||
const Inner array_struct_inner[4] = ub_load_37(816u);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001A0147F5100(4,3-11): error X3000: unrecognized identifier 'float16_t'
|
||||
|
||||
|
||||
@@ -10,26 +10,26 @@ int i() {
|
||||
return counter;
|
||||
}
|
||||
|
||||
matrix<float16_t, 2, 3> tint_symbol_1(uint4 buffer[4], uint offset) {
|
||||
matrix<float16_t, 2, 3> a_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
return matrix<float16_t, 2, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 2, 3> tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||
typedef matrix<float16_t, 2, 3> a_load_ret[4];
|
||||
a_load_ret a_load(uint offset) {
|
||||
matrix<float16_t, 2, 3> arr[4] = (matrix<float16_t, 2, 3>[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_1(buffer, (offset + (i_1 * 16u)));
|
||||
arr[i_1] = a_load_1((offset + (i_1 * 16u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -39,8 +39,8 @@ tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||
void f() {
|
||||
const int p_a_i_save = i();
|
||||
const int p_a_i_i_save = i();
|
||||
const matrix<float16_t, 2, 3> l_a[4] = tint_symbol(a, 0u);
|
||||
const matrix<float16_t, 2, 3> l_a_i = tint_symbol_1(a, (16u * uint(p_a_i_save)));
|
||||
const matrix<float16_t, 2, 3> l_a[4] = a_load(0u);
|
||||
const matrix<float16_t, 2, 3> l_a_i = a_load_1((16u * uint(p_a_i_save)));
|
||||
const uint scalar_offset_2 = (((16u * uint(p_a_i_save)) + (8u * uint(p_a_i_i_save)))) / 4;
|
||||
uint4 ubo_load_5 = a[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
@@ -49,6 +49,3 @@ void f() {
|
||||
const vector<float16_t, 3> l_a_i_i = vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001F4D5AC4540(11,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -4,26 +4,26 @@ cbuffer cbuffer_a : register(b0, space0) {
|
||||
uint4 a[4];
|
||||
};
|
||||
|
||||
matrix<float16_t, 2, 3> tint_symbol_1(uint4 buffer[4], uint offset) {
|
||||
matrix<float16_t, 2, 3> a_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
return matrix<float16_t, 2, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 2, 3> tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||
typedef matrix<float16_t, 2, 3> a_load_ret[4];
|
||||
a_load_ret a_load(uint offset) {
|
||||
matrix<float16_t, 2, 3> arr[4] = (matrix<float16_t, 2, 3>[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 16u)));
|
||||
arr[i] = a_load_1((offset + (i * 16u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -31,14 +31,11 @@ tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const matrix<float16_t, 2, 3> l_a[4] = tint_symbol(a, 0u);
|
||||
const matrix<float16_t, 2, 3> l_a_i = tint_symbol_1(a, 32u);
|
||||
const matrix<float16_t, 2, 3> l_a[4] = a_load(0u);
|
||||
const matrix<float16_t, 2, 3> l_a_i = a_load_1(32u);
|
||||
uint2 ubo_load_4 = a[2].zw;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
const vector<float16_t, 3> l_a_i_i = vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000016DBC7DD4E0(5,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -4,14 +4,14 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
uint4 u[4];
|
||||
};
|
||||
|
||||
matrix<float16_t, 2, 3> tint_symbol(uint4 buffer[4], uint offset) {
|
||||
matrix<float16_t, 2, 3> u_load(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
@@ -20,7 +20,7 @@ matrix<float16_t, 2, 3> tint_symbol(uint4 buffer[4], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const matrix<float16_t, 3, 2> t = transpose(tint_symbol(u, 32u));
|
||||
const matrix<float16_t, 3, 2> t = transpose(u_load(32u));
|
||||
uint2 ubo_load_4 = u[0].zw;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
@@ -31,6 +31,3 @@ void f() {
|
||||
const float16_t a = abs(vector<float16_t, 3>(ubo_load_5_xz[0], ubo_load_5_y, ubo_load_5_xz[1]).zxy.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001B4475A47D0(5,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -16,26 +16,26 @@ void c(vector<float16_t, 3> v) {
|
||||
void d(float16_t f_1) {
|
||||
}
|
||||
|
||||
matrix<float16_t, 2, 3> tint_symbol_1(uint4 buffer[4], uint offset) {
|
||||
matrix<float16_t, 2, 3> u_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
return matrix<float16_t, 2, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 2, 3> tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||
typedef matrix<float16_t, 2, 3> u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
matrix<float16_t, 2, 3> arr[4] = (matrix<float16_t, 2, 3>[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 16u)));
|
||||
arr[i] = u_load_1((offset + (i * 16u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -43,8 +43,8 @@ tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
a(tint_symbol(u, 0u));
|
||||
b(tint_symbol_1(u, 16u));
|
||||
a(u_load(0u));
|
||||
b(u_load_1(16u));
|
||||
uint2 ubo_load_4 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
@@ -55,9 +55,3 @@ void f() {
|
||||
d(vector<float16_t, 3>(ubo_load_5_xz[0], ubo_load_5_y, ubo_load_5_xz[1]).zxy.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002290980B6C0(5,15-23): error X3000: syntax error: unexpected token 'float16_t'
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002290980B6C0(8,15-23): error X3000: syntax error: unexpected token 'float16_t'
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002290980B6C0(11,15-23): error X3000: syntax error: unexpected token 'float16_t'
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002290980B6C0(14,8-16): error X3000: unrecognized identifier 'float16_t'
|
||||
|
||||
|
||||
@@ -5,26 +5,26 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
static matrix<float16_t, 2, 3> p[4] = (matrix<float16_t, 2, 3>[4])0;
|
||||
|
||||
matrix<float16_t, 2, 3> tint_symbol_1(uint4 buffer[4], uint offset) {
|
||||
matrix<float16_t, 2, 3> u_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
return matrix<float16_t, 2, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 2, 3> tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||
typedef matrix<float16_t, 2, 3> u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
matrix<float16_t, 2, 3> arr[4] = (matrix<float16_t, 2, 3>[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 16u)));
|
||||
arr[i] = u_load_1((offset + (i * 16u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -32,8 +32,8 @@ tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
p = tint_symbol(u, 0u);
|
||||
p[1] = tint_symbol_1(u, 32u);
|
||||
p = u_load(0u);
|
||||
p[1] = u_load_1(32u);
|
||||
uint2 ubo_load_4 = u[0].zw;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
@@ -41,6 +41,3 @@ void f() {
|
||||
p[1][0].x = float16_t(f16tof32(((u[0].z) & 0xFFFF)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001C62197B570(4,15-23): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -5,40 +5,40 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
RWByteAddressBuffer s : register(u1, space0);
|
||||
|
||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 2, 3> value) {
|
||||
buffer.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
||||
buffer.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
||||
void s_store_1(uint offset, matrix<float16_t, 2, 3> value) {
|
||||
s.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
||||
s.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
||||
}
|
||||
|
||||
void tint_symbol(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 2, 3> value[4]) {
|
||||
matrix<float16_t, 2, 3> array[4] = value;
|
||||
void s_store(uint offset, matrix<float16_t, 2, 3> value[4]) {
|
||||
matrix<float16_t, 2, 3> array_1[4] = value;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
tint_symbol_1(buffer, (offset + (i * 16u)), array[i]);
|
||||
s_store_1((offset + (i * 16u)), array_1[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
matrix<float16_t, 2, 3> tint_symbol_4(uint4 buffer[4], uint offset) {
|
||||
matrix<float16_t, 2, 3> u_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
return matrix<float16_t, 2, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 2, 3> tint_symbol_3_ret[4];
|
||||
tint_symbol_3_ret tint_symbol_3(uint4 buffer[4], uint offset) {
|
||||
typedef matrix<float16_t, 2, 3> u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
matrix<float16_t, 2, 3> arr[4] = (matrix<float16_t, 2, 3>[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_4(buffer, (offset + (i_1 * 16u)));
|
||||
arr[i_1] = u_load_1((offset + (i_1 * 16u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -46,8 +46,8 @@ tint_symbol_3_ret tint_symbol_3(uint4 buffer[4], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
tint_symbol(s, 0u, tint_symbol_3(u, 0u));
|
||||
tint_symbol_1(s, 16u, tint_symbol_4(u, 32u));
|
||||
s_store(0u, u_load(0u));
|
||||
s_store_1(16u, u_load_1(32u));
|
||||
uint2 ubo_load_4 = u[0].zw;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
@@ -55,7 +55,3 @@ void f() {
|
||||
s.Store<float16_t>(16u, float16_t(f16tof32(((u[0].z) & 0xFFFF))));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001AB590A03F0(6,68-76): error X3000: syntax error: unexpected token 'float16_t'
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001AB590A03F0(7,3-14): error X3018: invalid subscript 'Store'
|
||||
|
||||
|
||||
@@ -9,26 +9,26 @@ struct tint_symbol_1 {
|
||||
uint local_invocation_index : SV_GroupIndex;
|
||||
};
|
||||
|
||||
matrix<float16_t, 2, 3> tint_symbol_3(uint4 buffer[4], uint offset) {
|
||||
matrix<float16_t, 2, 3> u_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
return matrix<float16_t, 2, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 2, 3> tint_symbol_2_ret[4];
|
||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[4], uint offset) {
|
||||
typedef matrix<float16_t, 2, 3> u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
matrix<float16_t, 2, 3> arr[4] = (matrix<float16_t, 2, 3>[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_3(buffer, (offset + (i_1 * 16u)));
|
||||
arr[i_1] = u_load_1((offset + (i_1 * 16u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -42,8 +42,8 @@ void f_inner(uint local_invocation_index) {
|
||||
}
|
||||
}
|
||||
GroupMemoryBarrierWithGroupSync();
|
||||
w = tint_symbol_2(u, 0u);
|
||||
w[1] = tint_symbol_3(u, 32u);
|
||||
w = u_load(0u);
|
||||
w[1] = u_load_1(32u);
|
||||
uint2 ubo_load_4 = u[0].zw;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
@@ -56,6 +56,3 @@ void f(tint_symbol_1 tint_symbol) {
|
||||
f_inner(tint_symbol.local_invocation_index);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000019397EFCDD0(4,20-28): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -10,26 +10,26 @@ int i() {
|
||||
return counter;
|
||||
}
|
||||
|
||||
matrix<float16_t, 2, 4> tint_symbol_1(uint4 buffer[4], uint offset) {
|
||||
matrix<float16_t, 2, 4> a_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
return matrix<float16_t, 2, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 2, 4> tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||
typedef matrix<float16_t, 2, 4> a_load_ret[4];
|
||||
a_load_ret a_load(uint offset) {
|
||||
matrix<float16_t, 2, 4> arr[4] = (matrix<float16_t, 2, 4>[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_1(buffer, (offset + (i_1 * 16u)));
|
||||
arr[i_1] = a_load_1((offset + (i_1 * 16u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -39,8 +39,8 @@ tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||
void f() {
|
||||
const int p_a_i_save = i();
|
||||
const int p_a_i_i_save = i();
|
||||
const matrix<float16_t, 2, 4> l_a[4] = tint_symbol(a, 0u);
|
||||
const matrix<float16_t, 2, 4> l_a_i = tint_symbol_1(a, (16u * uint(p_a_i_save)));
|
||||
const matrix<float16_t, 2, 4> l_a[4] = a_load(0u);
|
||||
const matrix<float16_t, 2, 4> l_a_i = a_load_1((16u * uint(p_a_i_save)));
|
||||
const uint scalar_offset_2 = (((16u * uint(p_a_i_save)) + (8u * uint(p_a_i_i_save)))) / 4;
|
||||
uint4 ubo_load_5 = a[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
@@ -49,6 +49,3 @@ void f() {
|
||||
const vector<float16_t, 4> l_a_i_i = vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000015AD15A89A0(11,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -4,26 +4,26 @@ cbuffer cbuffer_a : register(b0, space0) {
|
||||
uint4 a[4];
|
||||
};
|
||||
|
||||
matrix<float16_t, 2, 4> tint_symbol_1(uint4 buffer[4], uint offset) {
|
||||
matrix<float16_t, 2, 4> a_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
return matrix<float16_t, 2, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 2, 4> tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||
typedef matrix<float16_t, 2, 4> a_load_ret[4];
|
||||
a_load_ret a_load(uint offset) {
|
||||
matrix<float16_t, 2, 4> arr[4] = (matrix<float16_t, 2, 4>[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 16u)));
|
||||
arr[i] = a_load_1((offset + (i * 16u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -31,14 +31,11 @@ tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const matrix<float16_t, 2, 4> l_a[4] = tint_symbol(a, 0u);
|
||||
const matrix<float16_t, 2, 4> l_a_i = tint_symbol_1(a, 32u);
|
||||
const matrix<float16_t, 2, 4> l_a[4] = a_load(0u);
|
||||
const matrix<float16_t, 2, 4> l_a_i = a_load_1(32u);
|
||||
uint2 ubo_load_4 = a[2].zw;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
const vector<float16_t, 4> l_a_i_i = vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000192D71EE4C0(5,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -4,14 +4,14 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
uint4 u[4];
|
||||
};
|
||||
|
||||
matrix<float16_t, 2, 4> tint_symbol(uint4 buffer[4], uint offset) {
|
||||
matrix<float16_t, 2, 4> u_load(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
@@ -20,7 +20,7 @@ matrix<float16_t, 2, 4> tint_symbol(uint4 buffer[4], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const matrix<float16_t, 4, 2> t = transpose(tint_symbol(u, 32u));
|
||||
const matrix<float16_t, 4, 2> t = transpose(u_load(32u));
|
||||
uint2 ubo_load_4 = u[0].zw;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
@@ -31,6 +31,3 @@ void f() {
|
||||
const float16_t a = abs(vector<float16_t, 4>(ubo_load_5_xz[0], ubo_load_5_yw[0], ubo_load_5_xz[1], ubo_load_5_yw[1]).ywxz.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000268E1507730(5,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -16,26 +16,26 @@ void c(vector<float16_t, 4> v) {
|
||||
void d(float16_t f_1) {
|
||||
}
|
||||
|
||||
matrix<float16_t, 2, 4> tint_symbol_1(uint4 buffer[4], uint offset) {
|
||||
matrix<float16_t, 2, 4> u_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
return matrix<float16_t, 2, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 2, 4> tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||
typedef matrix<float16_t, 2, 4> u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
matrix<float16_t, 2, 4> arr[4] = (matrix<float16_t, 2, 4>[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 16u)));
|
||||
arr[i] = u_load_1((offset + (i * 16u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -43,8 +43,8 @@ tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
a(tint_symbol(u, 0u));
|
||||
b(tint_symbol_1(u, 16u));
|
||||
a(u_load(0u));
|
||||
b(u_load_1(16u));
|
||||
uint2 ubo_load_4 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
@@ -55,9 +55,3 @@ void f() {
|
||||
d(vector<float16_t, 4>(ubo_load_5_xz[0], ubo_load_5_yw[0], ubo_load_5_xz[1], ubo_load_5_yw[1]).ywxz.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001E7EB824620(5,15-23): error X3000: syntax error: unexpected token 'float16_t'
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001E7EB824620(8,15-23): error X3000: syntax error: unexpected token 'float16_t'
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001E7EB824620(11,15-23): error X3000: syntax error: unexpected token 'float16_t'
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001E7EB824620(14,8-16): error X3000: unrecognized identifier 'float16_t'
|
||||
|
||||
|
||||
@@ -5,26 +5,26 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
static matrix<float16_t, 2, 4> p[4] = (matrix<float16_t, 2, 4>[4])0;
|
||||
|
||||
matrix<float16_t, 2, 4> tint_symbol_1(uint4 buffer[4], uint offset) {
|
||||
matrix<float16_t, 2, 4> u_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
return matrix<float16_t, 2, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 2, 4> tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||
typedef matrix<float16_t, 2, 4> u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
matrix<float16_t, 2, 4> arr[4] = (matrix<float16_t, 2, 4>[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 16u)));
|
||||
arr[i] = u_load_1((offset + (i * 16u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -32,8 +32,8 @@ tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
p = tint_symbol(u, 0u);
|
||||
p[1] = tint_symbol_1(u, 32u);
|
||||
p = u_load(0u);
|
||||
p[1] = u_load_1(32u);
|
||||
uint2 ubo_load_4 = u[0].zw;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
@@ -41,6 +41,3 @@ void f() {
|
||||
p[1][0].x = float16_t(f16tof32(((u[0].z) & 0xFFFF)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000022CF2B4B400(4,15-23): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -5,40 +5,40 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
RWByteAddressBuffer s : register(u1, space0);
|
||||
|
||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 2, 4> value) {
|
||||
buffer.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||
buffer.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||
void s_store_1(uint offset, matrix<float16_t, 2, 4> value) {
|
||||
s.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||
s.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||
}
|
||||
|
||||
void tint_symbol(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 2, 4> value[4]) {
|
||||
matrix<float16_t, 2, 4> array[4] = value;
|
||||
void s_store(uint offset, matrix<float16_t, 2, 4> value[4]) {
|
||||
matrix<float16_t, 2, 4> array_1[4] = value;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
tint_symbol_1(buffer, (offset + (i * 16u)), array[i]);
|
||||
s_store_1((offset + (i * 16u)), array_1[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
matrix<float16_t, 2, 4> tint_symbol_4(uint4 buffer[4], uint offset) {
|
||||
matrix<float16_t, 2, 4> u_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
return matrix<float16_t, 2, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 2, 4> tint_symbol_3_ret[4];
|
||||
tint_symbol_3_ret tint_symbol_3(uint4 buffer[4], uint offset) {
|
||||
typedef matrix<float16_t, 2, 4> u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
matrix<float16_t, 2, 4> arr[4] = (matrix<float16_t, 2, 4>[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_4(buffer, (offset + (i_1 * 16u)));
|
||||
arr[i_1] = u_load_1((offset + (i_1 * 16u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -46,8 +46,8 @@ tint_symbol_3_ret tint_symbol_3(uint4 buffer[4], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
tint_symbol(s, 0u, tint_symbol_3(u, 0u));
|
||||
tint_symbol_1(s, 16u, tint_symbol_4(u, 32u));
|
||||
s_store(0u, u_load(0u));
|
||||
s_store_1(16u, u_load_1(32u));
|
||||
uint2 ubo_load_4 = u[0].zw;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
@@ -55,7 +55,3 @@ void f() {
|
||||
s.Store<float16_t>(16u, float16_t(f16tof32(((u[0].z) & 0xFFFF))));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000028AE9A12030(6,68-76): error X3000: syntax error: unexpected token 'float16_t'
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000028AE9A12030(7,3-14): error X3018: invalid subscript 'Store'
|
||||
|
||||
|
||||
@@ -9,26 +9,26 @@ struct tint_symbol_1 {
|
||||
uint local_invocation_index : SV_GroupIndex;
|
||||
};
|
||||
|
||||
matrix<float16_t, 2, 4> tint_symbol_3(uint4 buffer[4], uint offset) {
|
||||
matrix<float16_t, 2, 4> u_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
return matrix<float16_t, 2, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 2, 4> tint_symbol_2_ret[4];
|
||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[4], uint offset) {
|
||||
typedef matrix<float16_t, 2, 4> u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
matrix<float16_t, 2, 4> arr[4] = (matrix<float16_t, 2, 4>[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_3(buffer, (offset + (i_1 * 16u)));
|
||||
arr[i_1] = u_load_1((offset + (i_1 * 16u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -42,8 +42,8 @@ void f_inner(uint local_invocation_index) {
|
||||
}
|
||||
}
|
||||
GroupMemoryBarrierWithGroupSync();
|
||||
w = tint_symbol_2(u, 0u);
|
||||
w[1] = tint_symbol_3(u, 32u);
|
||||
w = u_load(0u);
|
||||
w[1] = u_load_1(32u);
|
||||
uint2 ubo_load_4 = u[0].zw;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
@@ -56,6 +56,3 @@ void f(tint_symbol_1 tint_symbol) {
|
||||
f_inner(tint_symbol.local_invocation_index);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001E5C5F5C8E0(4,20-28): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -10,24 +10,24 @@ int i() {
|
||||
return counter;
|
||||
}
|
||||
|
||||
matrix<float16_t, 4, 2> tint_symbol_1(uint4 buffer[4], uint offset) {
|
||||
matrix<float16_t, 4, 2> a_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
|
||||
uint ubo_load = a[scalar_offset / 4][scalar_offset % 4];
|
||||
const uint scalar_offset_1 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
uint ubo_load_1 = a[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
const uint scalar_offset_2 = ((offset + 8u)) / 4;
|
||||
uint ubo_load_2 = buffer[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
uint ubo_load_2 = a[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
const uint scalar_offset_3 = ((offset + 12u)) / 4;
|
||||
uint ubo_load_3 = buffer[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
uint ubo_load_3 = a[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
return matrix<float16_t, 4, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 4, 2> tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||
typedef matrix<float16_t, 4, 2> a_load_ret[4];
|
||||
a_load_ret a_load(uint offset) {
|
||||
matrix<float16_t, 4, 2> arr[4] = (matrix<float16_t, 4, 2>[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_1(buffer, (offset + (i_1 * 16u)));
|
||||
arr[i_1] = a_load_1((offset + (i_1 * 16u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -37,13 +37,10 @@ tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||
void f() {
|
||||
const int p_a_i_save = i();
|
||||
const int p_a_i_i_save = i();
|
||||
const matrix<float16_t, 4, 2> l_a[4] = tint_symbol(a, 0u);
|
||||
const matrix<float16_t, 4, 2> l_a_i = tint_symbol_1(a, (16u * uint(p_a_i_save)));
|
||||
const matrix<float16_t, 4, 2> l_a[4] = a_load(0u);
|
||||
const matrix<float16_t, 4, 2> l_a_i = a_load_1((16u * uint(p_a_i_save)));
|
||||
const uint scalar_offset_4 = (((16u * uint(p_a_i_save)) + (4u * uint(p_a_i_i_save)))) / 4;
|
||||
uint ubo_load_4 = a[scalar_offset_4 / 4][scalar_offset_4 % 4];
|
||||
const vector<float16_t, 2> l_a_i_i = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000252EDBAA7F0(11,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -4,24 +4,24 @@ cbuffer cbuffer_a : register(b0, space0) {
|
||||
uint4 a[4];
|
||||
};
|
||||
|
||||
matrix<float16_t, 4, 2> tint_symbol_1(uint4 buffer[4], uint offset) {
|
||||
matrix<float16_t, 4, 2> a_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
|
||||
uint ubo_load = a[scalar_offset / 4][scalar_offset % 4];
|
||||
const uint scalar_offset_1 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
uint ubo_load_1 = a[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
const uint scalar_offset_2 = ((offset + 8u)) / 4;
|
||||
uint ubo_load_2 = buffer[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
uint ubo_load_2 = a[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
const uint scalar_offset_3 = ((offset + 12u)) / 4;
|
||||
uint ubo_load_3 = buffer[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
uint ubo_load_3 = a[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
return matrix<float16_t, 4, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 4, 2> tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||
typedef matrix<float16_t, 4, 2> a_load_ret[4];
|
||||
a_load_ret a_load(uint offset) {
|
||||
matrix<float16_t, 4, 2> arr[4] = (matrix<float16_t, 4, 2>[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 16u)));
|
||||
arr[i] = a_load_1((offset + (i * 16u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -29,12 +29,9 @@ tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const matrix<float16_t, 4, 2> l_a[4] = tint_symbol(a, 0u);
|
||||
const matrix<float16_t, 4, 2> l_a_i = tint_symbol_1(a, 32u);
|
||||
const matrix<float16_t, 4, 2> l_a[4] = a_load(0u);
|
||||
const matrix<float16_t, 4, 2> l_a_i = a_load_1(32u);
|
||||
uint ubo_load_4 = a[2].y;
|
||||
const vector<float16_t, 2> l_a_i_i = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000014EAAC1C520(5,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -4,27 +4,24 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
uint4 u[4];
|
||||
};
|
||||
|
||||
matrix<float16_t, 4, 2> tint_symbol(uint4 buffer[4], uint offset) {
|
||||
matrix<float16_t, 4, 2> u_load(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
|
||||
uint ubo_load = u[scalar_offset / 4][scalar_offset % 4];
|
||||
const uint scalar_offset_1 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
uint ubo_load_1 = u[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
const uint scalar_offset_2 = ((offset + 8u)) / 4;
|
||||
uint ubo_load_2 = buffer[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
uint ubo_load_2 = u[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
const uint scalar_offset_3 = ((offset + 12u)) / 4;
|
||||
uint ubo_load_3 = buffer[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
uint ubo_load_3 = u[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
return matrix<float16_t, 4, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))));
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const matrix<float16_t, 2, 4> t = transpose(tint_symbol(u, 32u));
|
||||
const matrix<float16_t, 2, 4> t = transpose(u_load(32u));
|
||||
uint ubo_load_4 = u[0].y;
|
||||
const float16_t l = length(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx);
|
||||
uint ubo_load_5 = u[0].y;
|
||||
const float16_t a = abs(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_5 & 0xFFFF)), float16_t(f16tof32(ubo_load_5 >> 16))).yx.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000025103259540(5,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -16,24 +16,24 @@ void c(vector<float16_t, 2> v) {
|
||||
void d(float16_t f_1) {
|
||||
}
|
||||
|
||||
matrix<float16_t, 4, 2> tint_symbol_1(uint4 buffer[4], uint offset) {
|
||||
matrix<float16_t, 4, 2> u_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
|
||||
uint ubo_load = u[scalar_offset / 4][scalar_offset % 4];
|
||||
const uint scalar_offset_1 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
uint ubo_load_1 = u[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
const uint scalar_offset_2 = ((offset + 8u)) / 4;
|
||||
uint ubo_load_2 = buffer[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
uint ubo_load_2 = u[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
const uint scalar_offset_3 = ((offset + 12u)) / 4;
|
||||
uint ubo_load_3 = buffer[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
uint ubo_load_3 = u[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
return matrix<float16_t, 4, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 4, 2> tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||
typedef matrix<float16_t, 4, 2> u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
matrix<float16_t, 4, 2> arr[4] = (matrix<float16_t, 4, 2>[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 16u)));
|
||||
arr[i] = u_load_1((offset + (i * 16u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -41,17 +41,11 @@ tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
a(tint_symbol(u, 0u));
|
||||
b(tint_symbol_1(u, 16u));
|
||||
a(u_load(0u));
|
||||
b(u_load_1(16u));
|
||||
uint ubo_load_4 = u[1].x;
|
||||
c(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx);
|
||||
uint ubo_load_5 = u[1].x;
|
||||
d(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_5 & 0xFFFF)), float16_t(f16tof32(ubo_load_5 >> 16))).yx.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000029B724CE850(5,15-23): error X3000: syntax error: unexpected token 'float16_t'
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000029B724CE850(8,15-23): error X3000: syntax error: unexpected token 'float16_t'
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000029B724CE850(11,15-23): error X3000: syntax error: unexpected token 'float16_t'
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000029B724CE850(14,8-16): error X3000: unrecognized identifier 'float16_t'
|
||||
|
||||
|
||||
@@ -5,24 +5,24 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
static matrix<float16_t, 4, 2> p[4] = (matrix<float16_t, 4, 2>[4])0;
|
||||
|
||||
matrix<float16_t, 4, 2> tint_symbol_1(uint4 buffer[4], uint offset) {
|
||||
matrix<float16_t, 4, 2> u_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
|
||||
uint ubo_load = u[scalar_offset / 4][scalar_offset % 4];
|
||||
const uint scalar_offset_1 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
uint ubo_load_1 = u[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
const uint scalar_offset_2 = ((offset + 8u)) / 4;
|
||||
uint ubo_load_2 = buffer[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
uint ubo_load_2 = u[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
const uint scalar_offset_3 = ((offset + 12u)) / 4;
|
||||
uint ubo_load_3 = buffer[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
uint ubo_load_3 = u[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
return matrix<float16_t, 4, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 4, 2> tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||
typedef matrix<float16_t, 4, 2> u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
matrix<float16_t, 4, 2> arr[4] = (matrix<float16_t, 4, 2>[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 16u)));
|
||||
arr[i] = u_load_1((offset + (i * 16u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -30,13 +30,10 @@ tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
p = tint_symbol(u, 0u);
|
||||
p[1] = tint_symbol_1(u, 32u);
|
||||
p = u_load(0u);
|
||||
p[1] = u_load_1(32u);
|
||||
uint ubo_load_4 = u[0].y;
|
||||
p[1][0] = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx;
|
||||
p[1][0].x = float16_t(f16tof32(((u[0].y) & 0xFFFF)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000015CB4D295E0(4,15-23): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -5,40 +5,40 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
RWByteAddressBuffer s : register(u1, space0);
|
||||
|
||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 4, 2> value) {
|
||||
buffer.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
||||
buffer.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
||||
buffer.Store<vector<float16_t, 2> >((offset + 8u), value[2u]);
|
||||
buffer.Store<vector<float16_t, 2> >((offset + 12u), value[3u]);
|
||||
void s_store_1(uint offset, matrix<float16_t, 4, 2> value) {
|
||||
s.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
||||
s.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
||||
s.Store<vector<float16_t, 2> >((offset + 8u), value[2u]);
|
||||
s.Store<vector<float16_t, 2> >((offset + 12u), value[3u]);
|
||||
}
|
||||
|
||||
void tint_symbol(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 4, 2> value[4]) {
|
||||
matrix<float16_t, 4, 2> array[4] = value;
|
||||
void s_store(uint offset, matrix<float16_t, 4, 2> value[4]) {
|
||||
matrix<float16_t, 4, 2> array_1[4] = value;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
tint_symbol_1(buffer, (offset + (i * 16u)), array[i]);
|
||||
s_store_1((offset + (i * 16u)), array_1[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
matrix<float16_t, 4, 2> tint_symbol_4(uint4 buffer[4], uint offset) {
|
||||
matrix<float16_t, 4, 2> u_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
|
||||
uint ubo_load = u[scalar_offset / 4][scalar_offset % 4];
|
||||
const uint scalar_offset_1 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
uint ubo_load_1 = u[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
const uint scalar_offset_2 = ((offset + 8u)) / 4;
|
||||
uint ubo_load_2 = buffer[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
uint ubo_load_2 = u[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
const uint scalar_offset_3 = ((offset + 12u)) / 4;
|
||||
uint ubo_load_3 = buffer[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
uint ubo_load_3 = u[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
return matrix<float16_t, 4, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 4, 2> tint_symbol_3_ret[4];
|
||||
tint_symbol_3_ret tint_symbol_3(uint4 buffer[4], uint offset) {
|
||||
typedef matrix<float16_t, 4, 2> u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
matrix<float16_t, 4, 2> arr[4] = (matrix<float16_t, 4, 2>[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_4(buffer, (offset + (i_1 * 16u)));
|
||||
arr[i_1] = u_load_1((offset + (i_1 * 16u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -46,14 +46,10 @@ tint_symbol_3_ret tint_symbol_3(uint4 buffer[4], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
tint_symbol(s, 0u, tint_symbol_3(u, 0u));
|
||||
tint_symbol_1(s, 16u, tint_symbol_4(u, 32u));
|
||||
s_store(0u, u_load(0u));
|
||||
s_store_1(16u, u_load_1(32u));
|
||||
uint ubo_load_4 = u[0].y;
|
||||
s.Store<vector<float16_t, 2> >(16u, vector<float16_t, 2>(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx);
|
||||
s.Store<float16_t>(16u, float16_t(f16tof32(((u[0].y) & 0xFFFF))));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001F88B180520(6,68-76): error X3000: syntax error: unexpected token 'float16_t'
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001F88B180520(7,3-14): error X3018: invalid subscript 'Store'
|
||||
|
||||
|
||||
@@ -9,24 +9,24 @@ struct tint_symbol_1 {
|
||||
uint local_invocation_index : SV_GroupIndex;
|
||||
};
|
||||
|
||||
matrix<float16_t, 4, 2> tint_symbol_3(uint4 buffer[4], uint offset) {
|
||||
matrix<float16_t, 4, 2> u_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
|
||||
uint ubo_load = u[scalar_offset / 4][scalar_offset % 4];
|
||||
const uint scalar_offset_1 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
uint ubo_load_1 = u[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
const uint scalar_offset_2 = ((offset + 8u)) / 4;
|
||||
uint ubo_load_2 = buffer[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
uint ubo_load_2 = u[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
const uint scalar_offset_3 = ((offset + 12u)) / 4;
|
||||
uint ubo_load_3 = buffer[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
uint ubo_load_3 = u[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
return matrix<float16_t, 4, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 4, 2> tint_symbol_2_ret[4];
|
||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[4], uint offset) {
|
||||
typedef matrix<float16_t, 4, 2> u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
matrix<float16_t, 4, 2> arr[4] = (matrix<float16_t, 4, 2>[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_3(buffer, (offset + (i_1 * 16u)));
|
||||
arr[i_1] = u_load_1((offset + (i_1 * 16u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -40,8 +40,8 @@ void f_inner(uint local_invocation_index) {
|
||||
}
|
||||
}
|
||||
GroupMemoryBarrierWithGroupSync();
|
||||
w = tint_symbol_2(u, 0u);
|
||||
w[1] = tint_symbol_3(u, 32u);
|
||||
w = u_load(0u);
|
||||
w[1] = u_load_1(32u);
|
||||
uint ubo_load_4 = u[0].y;
|
||||
w[1][0] = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx;
|
||||
w[1][0].x = float16_t(f16tof32(((u[0].y) & 0xFFFF)));
|
||||
@@ -52,6 +52,3 @@ void f(tint_symbol_1 tint_symbol) {
|
||||
f_inner(tint_symbol.local_invocation_index);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000020D4DFDDE90(4,20-28): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -10,36 +10,36 @@ int i() {
|
||||
return counter;
|
||||
}
|
||||
|
||||
matrix<float16_t, 4, 3> tint_symbol_1(uint4 buffer[8], uint offset) {
|
||||
matrix<float16_t, 4, 3> a_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = a[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = a[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
return matrix<float16_t, 4, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]), vector<float16_t, 3>(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 4, 3> tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
||||
typedef matrix<float16_t, 4, 3> a_load_ret[4];
|
||||
a_load_ret a_load(uint offset) {
|
||||
matrix<float16_t, 4, 3> arr[4] = (matrix<float16_t, 4, 3>[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_1(buffer, (offset + (i_1 * 32u)));
|
||||
arr[i_1] = a_load_1((offset + (i_1 * 32u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -49,8 +49,8 @@ tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
||||
void f() {
|
||||
const int p_a_i_save = i();
|
||||
const int p_a_i_i_save = i();
|
||||
const matrix<float16_t, 4, 3> l_a[4] = tint_symbol(a, 0u);
|
||||
const matrix<float16_t, 4, 3> l_a_i = tint_symbol_1(a, (32u * uint(p_a_i_save)));
|
||||
const matrix<float16_t, 4, 3> l_a[4] = a_load(0u);
|
||||
const matrix<float16_t, 4, 3> l_a_i = a_load_1((32u * uint(p_a_i_save)));
|
||||
const uint scalar_offset_4 = (((32u * uint(p_a_i_save)) + (8u * uint(p_a_i_i_save)))) / 4;
|
||||
uint4 ubo_load_9 = a[scalar_offset_4 / 4];
|
||||
uint2 ubo_load_8 = ((scalar_offset_4 & 2) ? ubo_load_9.zw : ubo_load_9.xy);
|
||||
@@ -59,6 +59,3 @@ void f() {
|
||||
const vector<float16_t, 3> l_a_i_i = vector<float16_t, 3>(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1]);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000180EC89DCE0(11,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -4,36 +4,36 @@ cbuffer cbuffer_a : register(b0, space0) {
|
||||
uint4 a[8];
|
||||
};
|
||||
|
||||
matrix<float16_t, 4, 3> tint_symbol_1(uint4 buffer[8], uint offset) {
|
||||
matrix<float16_t, 4, 3> a_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = a[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = a[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
return matrix<float16_t, 4, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]), vector<float16_t, 3>(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 4, 3> tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
||||
typedef matrix<float16_t, 4, 3> a_load_ret[4];
|
||||
a_load_ret a_load(uint offset) {
|
||||
matrix<float16_t, 4, 3> arr[4] = (matrix<float16_t, 4, 3>[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 32u)));
|
||||
arr[i] = a_load_1((offset + (i * 32u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -41,14 +41,11 @@ tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const matrix<float16_t, 4, 3> l_a[4] = tint_symbol(a, 0u);
|
||||
const matrix<float16_t, 4, 3> l_a_i = tint_symbol_1(a, 64u);
|
||||
const matrix<float16_t, 4, 3> l_a[4] = a_load(0u);
|
||||
const matrix<float16_t, 4, 3> l_a_i = a_load_1(64u);
|
||||
uint2 ubo_load_8 = a[4].zw;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16);
|
||||
const vector<float16_t, 3> l_a_i_i = vector<float16_t, 3>(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1]);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000021B182DE800(5,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -4,24 +4,24 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
uint4 u[8];
|
||||
};
|
||||
|
||||
matrix<float16_t, 4, 3> tint_symbol(uint4 buffer[8], uint offset) {
|
||||
matrix<float16_t, 4, 3> u_load(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
@@ -30,7 +30,7 @@ matrix<float16_t, 4, 3> tint_symbol(uint4 buffer[8], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const matrix<float16_t, 3, 4> t = transpose(tint_symbol(u, 64u));
|
||||
const matrix<float16_t, 3, 4> t = transpose(u_load(64u));
|
||||
uint2 ubo_load_8 = u[0].zw;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16);
|
||||
@@ -41,6 +41,3 @@ void f() {
|
||||
const float16_t a = abs(vector<float16_t, 3>(ubo_load_9_xz[0], ubo_load_9_y, ubo_load_9_xz[1]).zxy.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002C9B1C5A400(5,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -16,36 +16,36 @@ void c(vector<float16_t, 3> v) {
|
||||
void d(float16_t f_1) {
|
||||
}
|
||||
|
||||
matrix<float16_t, 4, 3> tint_symbol_1(uint4 buffer[8], uint offset) {
|
||||
matrix<float16_t, 4, 3> u_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
return matrix<float16_t, 4, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]), vector<float16_t, 3>(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 4, 3> tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
||||
typedef matrix<float16_t, 4, 3> u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
matrix<float16_t, 4, 3> arr[4] = (matrix<float16_t, 4, 3>[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 32u)));
|
||||
arr[i] = u_load_1((offset + (i * 32u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -53,8 +53,8 @@ tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
a(tint_symbol(u, 0u));
|
||||
b(tint_symbol_1(u, 32u));
|
||||
a(u_load(0u));
|
||||
b(u_load_1(32u));
|
||||
uint2 ubo_load_8 = u[2].xy;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16);
|
||||
@@ -65,9 +65,3 @@ void f() {
|
||||
d(vector<float16_t, 3>(ubo_load_9_xz[0], ubo_load_9_y, ubo_load_9_xz[1]).zxy.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000296784C0E70(5,15-23): error X3000: syntax error: unexpected token 'float16_t'
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000296784C0E70(8,15-23): error X3000: syntax error: unexpected token 'float16_t'
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000296784C0E70(11,15-23): error X3000: syntax error: unexpected token 'float16_t'
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000296784C0E70(14,8-16): error X3000: unrecognized identifier 'float16_t'
|
||||
|
||||
|
||||
@@ -5,36 +5,36 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
static matrix<float16_t, 4, 3> p[4] = (matrix<float16_t, 4, 3>[4])0;
|
||||
|
||||
matrix<float16_t, 4, 3> tint_symbol_1(uint4 buffer[8], uint offset) {
|
||||
matrix<float16_t, 4, 3> u_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
return matrix<float16_t, 4, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]), vector<float16_t, 3>(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 4, 3> tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
||||
typedef matrix<float16_t, 4, 3> u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
matrix<float16_t, 4, 3> arr[4] = (matrix<float16_t, 4, 3>[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 32u)));
|
||||
arr[i] = u_load_1((offset + (i * 32u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -42,8 +42,8 @@ tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
p = tint_symbol(u, 0u);
|
||||
p[1] = tint_symbol_1(u, 64u);
|
||||
p = u_load(0u);
|
||||
p[1] = u_load_1(64u);
|
||||
uint2 ubo_load_8 = u[0].zw;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16);
|
||||
@@ -51,6 +51,3 @@ void f() {
|
||||
p[1][0].x = float16_t(f16tof32(((u[0].z) & 0xFFFF)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000222F970C590(4,15-23): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -5,52 +5,52 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
RWByteAddressBuffer s : register(u1, space0);
|
||||
|
||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 4, 3> value) {
|
||||
buffer.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
||||
buffer.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
||||
buffer.Store<vector<float16_t, 3> >((offset + 16u), value[2u]);
|
||||
buffer.Store<vector<float16_t, 3> >((offset + 24u), value[3u]);
|
||||
void s_store_1(uint offset, matrix<float16_t, 4, 3> value) {
|
||||
s.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
||||
s.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
||||
s.Store<vector<float16_t, 3> >((offset + 16u), value[2u]);
|
||||
s.Store<vector<float16_t, 3> >((offset + 24u), value[3u]);
|
||||
}
|
||||
|
||||
void tint_symbol(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 4, 3> value[4]) {
|
||||
matrix<float16_t, 4, 3> array[4] = value;
|
||||
void s_store(uint offset, matrix<float16_t, 4, 3> value[4]) {
|
||||
matrix<float16_t, 4, 3> array_1[4] = value;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
tint_symbol_1(buffer, (offset + (i * 32u)), array[i]);
|
||||
s_store_1((offset + (i * 32u)), array_1[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
matrix<float16_t, 4, 3> tint_symbol_4(uint4 buffer[8], uint offset) {
|
||||
matrix<float16_t, 4, 3> u_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
return matrix<float16_t, 4, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]), vector<float16_t, 3>(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 4, 3> tint_symbol_3_ret[4];
|
||||
tint_symbol_3_ret tint_symbol_3(uint4 buffer[8], uint offset) {
|
||||
typedef matrix<float16_t, 4, 3> u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
matrix<float16_t, 4, 3> arr[4] = (matrix<float16_t, 4, 3>[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_4(buffer, (offset + (i_1 * 32u)));
|
||||
arr[i_1] = u_load_1((offset + (i_1 * 32u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -58,8 +58,8 @@ tint_symbol_3_ret tint_symbol_3(uint4 buffer[8], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
tint_symbol(s, 0u, tint_symbol_3(u, 0u));
|
||||
tint_symbol_1(s, 32u, tint_symbol_4(u, 64u));
|
||||
s_store(0u, u_load(0u));
|
||||
s_store_1(32u, u_load_1(64u));
|
||||
uint2 ubo_load_8 = u[0].zw;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16);
|
||||
@@ -67,7 +67,3 @@ void f() {
|
||||
s.Store<float16_t>(32u, float16_t(f16tof32(((u[0].z) & 0xFFFF))));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000021F13DB33D0(6,68-76): error X3000: syntax error: unexpected token 'float16_t'
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000021F13DB33D0(7,3-14): error X3018: invalid subscript 'Store'
|
||||
|
||||
|
||||
@@ -9,36 +9,36 @@ struct tint_symbol_1 {
|
||||
uint local_invocation_index : SV_GroupIndex;
|
||||
};
|
||||
|
||||
matrix<float16_t, 4, 3> tint_symbol_3(uint4 buffer[8], uint offset) {
|
||||
matrix<float16_t, 4, 3> u_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
return matrix<float16_t, 4, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]), vector<float16_t, 3>(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 4, 3> tint_symbol_2_ret[4];
|
||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[8], uint offset) {
|
||||
typedef matrix<float16_t, 4, 3> u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
matrix<float16_t, 4, 3> arr[4] = (matrix<float16_t, 4, 3>[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_3(buffer, (offset + (i_1 * 32u)));
|
||||
arr[i_1] = u_load_1((offset + (i_1 * 32u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -52,8 +52,8 @@ void f_inner(uint local_invocation_index) {
|
||||
}
|
||||
}
|
||||
GroupMemoryBarrierWithGroupSync();
|
||||
w = tint_symbol_2(u, 0u);
|
||||
w[1] = tint_symbol_3(u, 64u);
|
||||
w = u_load(0u);
|
||||
w[1] = u_load_1(64u);
|
||||
uint2 ubo_load_8 = u[0].zw;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16);
|
||||
@@ -66,6 +66,3 @@ void f(tint_symbol_1 tint_symbol) {
|
||||
f_inner(tint_symbol.local_invocation_index);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001D6F2EDF360(4,20-28): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -10,36 +10,36 @@ int i() {
|
||||
return counter;
|
||||
}
|
||||
|
||||
matrix<float16_t, 4, 4> tint_symbol_1(uint4 buffer[8], uint offset) {
|
||||
matrix<float16_t, 4, 4> a_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = a[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = a[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
return matrix<float16_t, 4, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]), vector<float16_t, 4>(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 4, 4> tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
||||
typedef matrix<float16_t, 4, 4> a_load_ret[4];
|
||||
a_load_ret a_load(uint offset) {
|
||||
matrix<float16_t, 4, 4> arr[4] = (matrix<float16_t, 4, 4>[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_1(buffer, (offset + (i_1 * 32u)));
|
||||
arr[i_1] = a_load_1((offset + (i_1 * 32u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -49,8 +49,8 @@ tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
||||
void f() {
|
||||
const int p_a_i_save = i();
|
||||
const int p_a_i_i_save = i();
|
||||
const matrix<float16_t, 4, 4> l_a[4] = tint_symbol(a, 0u);
|
||||
const matrix<float16_t, 4, 4> l_a_i = tint_symbol_1(a, (32u * uint(p_a_i_save)));
|
||||
const matrix<float16_t, 4, 4> l_a[4] = a_load(0u);
|
||||
const matrix<float16_t, 4, 4> l_a_i = a_load_1((32u * uint(p_a_i_save)));
|
||||
const uint scalar_offset_4 = (((32u * uint(p_a_i_save)) + (8u * uint(p_a_i_i_save)))) / 4;
|
||||
uint4 ubo_load_9 = a[scalar_offset_4 / 4];
|
||||
uint2 ubo_load_8 = ((scalar_offset_4 & 2) ? ubo_load_9.zw : ubo_load_9.xy);
|
||||
@@ -59,6 +59,3 @@ void f() {
|
||||
const vector<float16_t, 4> l_a_i_i = vector<float16_t, 4>(ubo_load_8_xz[0], ubo_load_8_yw[0], ubo_load_8_xz[1], ubo_load_8_yw[1]);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001F4B0E9BB50(11,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -4,36 +4,36 @@ cbuffer cbuffer_a : register(b0, space0) {
|
||||
uint4 a[8];
|
||||
};
|
||||
|
||||
matrix<float16_t, 4, 4> tint_symbol_1(uint4 buffer[8], uint offset) {
|
||||
matrix<float16_t, 4, 4> a_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = a[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = a[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
return matrix<float16_t, 4, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]), vector<float16_t, 4>(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 4, 4> tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
||||
typedef matrix<float16_t, 4, 4> a_load_ret[4];
|
||||
a_load_ret a_load(uint offset) {
|
||||
matrix<float16_t, 4, 4> arr[4] = (matrix<float16_t, 4, 4>[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 32u)));
|
||||
arr[i] = a_load_1((offset + (i * 32u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -41,14 +41,11 @@ tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const matrix<float16_t, 4, 4> l_a[4] = tint_symbol(a, 0u);
|
||||
const matrix<float16_t, 4, 4> l_a_i = tint_symbol_1(a, 64u);
|
||||
const matrix<float16_t, 4, 4> l_a[4] = a_load(0u);
|
||||
const matrix<float16_t, 4, 4> l_a_i = a_load_1(64u);
|
||||
uint2 ubo_load_8 = a[4].zw;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_8_yw = vector<float16_t, 2>(f16tof32(ubo_load_8 >> 16));
|
||||
const vector<float16_t, 4> l_a_i_i = vector<float16_t, 4>(ubo_load_8_xz[0], ubo_load_8_yw[0], ubo_load_8_xz[1], ubo_load_8_yw[1]);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001586950D8A0(5,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -4,24 +4,24 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
uint4 u[8];
|
||||
};
|
||||
|
||||
matrix<float16_t, 4, 4> tint_symbol(uint4 buffer[8], uint offset) {
|
||||
matrix<float16_t, 4, 4> u_load(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
@@ -30,7 +30,7 @@ matrix<float16_t, 4, 4> tint_symbol(uint4 buffer[8], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const matrix<float16_t, 4, 4> t = transpose(tint_symbol(u, 64u));
|
||||
const matrix<float16_t, 4, 4> t = transpose(u_load(64u));
|
||||
uint2 ubo_load_8 = u[0].zw;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_8_yw = vector<float16_t, 2>(f16tof32(ubo_load_8 >> 16));
|
||||
@@ -41,6 +41,3 @@ void f() {
|
||||
const float16_t a = abs(vector<float16_t, 4>(ubo_load_9_xz[0], ubo_load_9_yw[0], ubo_load_9_xz[1], ubo_load_9_yw[1]).ywxz.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002574E068B20(5,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -16,36 +16,36 @@ void c(vector<float16_t, 4> v) {
|
||||
void d(float16_t f_1) {
|
||||
}
|
||||
|
||||
matrix<float16_t, 4, 4> tint_symbol_1(uint4 buffer[8], uint offset) {
|
||||
matrix<float16_t, 4, 4> u_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
return matrix<float16_t, 4, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]), vector<float16_t, 4>(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 4, 4> tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
||||
typedef matrix<float16_t, 4, 4> u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
matrix<float16_t, 4, 4> arr[4] = (matrix<float16_t, 4, 4>[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 32u)));
|
||||
arr[i] = u_load_1((offset + (i * 32u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -53,8 +53,8 @@ tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
a(tint_symbol(u, 0u));
|
||||
b(tint_symbol_1(u, 32u));
|
||||
a(u_load(0u));
|
||||
b(u_load_1(32u));
|
||||
uint2 ubo_load_8 = u[2].xy;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_8_yw = vector<float16_t, 2>(f16tof32(ubo_load_8 >> 16));
|
||||
@@ -65,9 +65,3 @@ void f() {
|
||||
d(vector<float16_t, 4>(ubo_load_9_xz[0], ubo_load_9_yw[0], ubo_load_9_xz[1], ubo_load_9_yw[1]).ywxz.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001FAC4F2FC00(5,15-23): error X3000: syntax error: unexpected token 'float16_t'
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001FAC4F2FC00(8,15-23): error X3000: syntax error: unexpected token 'float16_t'
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001FAC4F2FC00(11,15-23): error X3000: syntax error: unexpected token 'float16_t'
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001FAC4F2FC00(14,8-16): error X3000: unrecognized identifier 'float16_t'
|
||||
|
||||
|
||||
@@ -5,36 +5,36 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
static matrix<float16_t, 4, 4> p[4] = (matrix<float16_t, 4, 4>[4])0;
|
||||
|
||||
matrix<float16_t, 4, 4> tint_symbol_1(uint4 buffer[8], uint offset) {
|
||||
matrix<float16_t, 4, 4> u_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
return matrix<float16_t, 4, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]), vector<float16_t, 4>(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 4, 4> tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
||||
typedef matrix<float16_t, 4, 4> u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
matrix<float16_t, 4, 4> arr[4] = (matrix<float16_t, 4, 4>[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 32u)));
|
||||
arr[i] = u_load_1((offset + (i * 32u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -42,8 +42,8 @@ tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
p = tint_symbol(u, 0u);
|
||||
p[1] = tint_symbol_1(u, 64u);
|
||||
p = u_load(0u);
|
||||
p[1] = u_load_1(64u);
|
||||
uint2 ubo_load_8 = u[0].zw;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_8_yw = vector<float16_t, 2>(f16tof32(ubo_load_8 >> 16));
|
||||
@@ -51,6 +51,3 @@ void f() {
|
||||
p[1][0].x = float16_t(f16tof32(((u[0].z) & 0xFFFF)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000219133D8C70(4,15-23): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -5,52 +5,52 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
RWByteAddressBuffer s : register(u1, space0);
|
||||
|
||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 4, 4> value) {
|
||||
buffer.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||
buffer.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||
buffer.Store<vector<float16_t, 4> >((offset + 16u), value[2u]);
|
||||
buffer.Store<vector<float16_t, 4> >((offset + 24u), value[3u]);
|
||||
void s_store_1(uint offset, matrix<float16_t, 4, 4> value) {
|
||||
s.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||
s.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||
s.Store<vector<float16_t, 4> >((offset + 16u), value[2u]);
|
||||
s.Store<vector<float16_t, 4> >((offset + 24u), value[3u]);
|
||||
}
|
||||
|
||||
void tint_symbol(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 4, 4> value[4]) {
|
||||
matrix<float16_t, 4, 4> array[4] = value;
|
||||
void s_store(uint offset, matrix<float16_t, 4, 4> value[4]) {
|
||||
matrix<float16_t, 4, 4> array_1[4] = value;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
tint_symbol_1(buffer, (offset + (i * 32u)), array[i]);
|
||||
s_store_1((offset + (i * 32u)), array_1[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
matrix<float16_t, 4, 4> tint_symbol_4(uint4 buffer[8], uint offset) {
|
||||
matrix<float16_t, 4, 4> u_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
return matrix<float16_t, 4, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]), vector<float16_t, 4>(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 4, 4> tint_symbol_3_ret[4];
|
||||
tint_symbol_3_ret tint_symbol_3(uint4 buffer[8], uint offset) {
|
||||
typedef matrix<float16_t, 4, 4> u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
matrix<float16_t, 4, 4> arr[4] = (matrix<float16_t, 4, 4>[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_4(buffer, (offset + (i_1 * 32u)));
|
||||
arr[i_1] = u_load_1((offset + (i_1 * 32u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -58,8 +58,8 @@ tint_symbol_3_ret tint_symbol_3(uint4 buffer[8], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
tint_symbol(s, 0u, tint_symbol_3(u, 0u));
|
||||
tint_symbol_1(s, 32u, tint_symbol_4(u, 64u));
|
||||
s_store(0u, u_load(0u));
|
||||
s_store_1(32u, u_load_1(64u));
|
||||
uint2 ubo_load_8 = u[0].zw;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_8_yw = vector<float16_t, 2>(f16tof32(ubo_load_8 >> 16));
|
||||
@@ -67,7 +67,3 @@ void f() {
|
||||
s.Store<float16_t>(32u, float16_t(f16tof32(((u[0].z) & 0xFFFF))));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002420B3F4EF0(6,68-76): error X3000: syntax error: unexpected token 'float16_t'
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002420B3F4EF0(7,3-14): error X3018: invalid subscript 'Store'
|
||||
|
||||
|
||||
@@ -9,36 +9,36 @@ struct tint_symbol_1 {
|
||||
uint local_invocation_index : SV_GroupIndex;
|
||||
};
|
||||
|
||||
matrix<float16_t, 4, 4> tint_symbol_3(uint4 buffer[8], uint offset) {
|
||||
matrix<float16_t, 4, 4> u_load_1(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
return matrix<float16_t, 4, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]), vector<float16_t, 4>(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]));
|
||||
}
|
||||
|
||||
typedef matrix<float16_t, 4, 4> tint_symbol_2_ret[4];
|
||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[8], uint offset) {
|
||||
typedef matrix<float16_t, 4, 4> u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
matrix<float16_t, 4, 4> arr[4] = (matrix<float16_t, 4, 4>[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_3(buffer, (offset + (i_1 * 32u)));
|
||||
arr[i_1] = u_load_1((offset + (i_1 * 32u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -52,8 +52,8 @@ void f_inner(uint local_invocation_index) {
|
||||
}
|
||||
}
|
||||
GroupMemoryBarrierWithGroupSync();
|
||||
w = tint_symbol_2(u, 0u);
|
||||
w[1] = tint_symbol_3(u, 64u);
|
||||
w = u_load(0u);
|
||||
w[1] = u_load_1(64u);
|
||||
uint2 ubo_load_8 = u[0].zw;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_8_yw = vector<float16_t, 2>(f16tof32(ubo_load_8 >> 16));
|
||||
@@ -66,6 +66,3 @@ void f(tint_symbol_1 tint_symbol) {
|
||||
f_inner(tint_symbol.local_invocation_index);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002B4C90BEEA0(4,20-28): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -17,41 +17,41 @@ int i() {
|
||||
return counter;
|
||||
}
|
||||
|
||||
matrix<float16_t, 2, 2> tint_symbol_8(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 2, 2> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
|
||||
uint ubo_load = a[scalar_offset / 4][scalar_offset % 4];
|
||||
const uint scalar_offset_1 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
uint ubo_load_1 = a[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
return matrix<float16_t, 2, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))));
|
||||
}
|
||||
|
||||
Inner tint_symbol_7(uint4 buffer[64], uint offset) {
|
||||
const Inner tint_symbol_11 = {tint_symbol_8(buffer, (offset + 0u))};
|
||||
return tint_symbol_11;
|
||||
Inner a_load_3(uint offset) {
|
||||
const Inner tint_symbol_4 = {a_load_4((offset + 0u))};
|
||||
return tint_symbol_4;
|
||||
}
|
||||
|
||||
typedef Inner tint_symbol_6_ret[4];
|
||||
tint_symbol_6_ret tint_symbol_6(uint4 buffer[64], uint offset) {
|
||||
typedef Inner a_load_2_ret[4];
|
||||
a_load_2_ret a_load_2(uint offset) {
|
||||
Inner arr[4] = (Inner[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_7(buffer, (offset + (i_1 * 64u)));
|
||||
arr[i_1] = a_load_3((offset + (i_1 * 64u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
Outer tint_symbol_5(uint4 buffer[64], uint offset) {
|
||||
const Outer tint_symbol_12 = {tint_symbol_6(buffer, (offset + 0u))};
|
||||
return tint_symbol_12;
|
||||
Outer a_load_1(uint offset) {
|
||||
const Outer tint_symbol_5 = {a_load_2((offset + 0u))};
|
||||
return tint_symbol_5;
|
||||
}
|
||||
|
||||
typedef Outer tint_symbol_4_ret[4];
|
||||
tint_symbol_4_ret tint_symbol_4(uint4 buffer[64], uint offset) {
|
||||
typedef Outer a_load_ret[4];
|
||||
a_load_ret a_load(uint offset) {
|
||||
Outer arr_1[4] = (Outer[4])0;
|
||||
{
|
||||
for(uint i_2 = 0u; (i_2 < 4u); i_2 = (i_2 + 1u)) {
|
||||
arr_1[i_2] = tint_symbol_5(buffer, (offset + (i_2 * 256u)));
|
||||
arr_1[i_2] = a_load_1((offset + (i_2 * 256u)));
|
||||
}
|
||||
}
|
||||
return arr_1;
|
||||
@@ -62,11 +62,11 @@ void f() {
|
||||
const int p_a_i_save = i();
|
||||
const int p_a_i_a_i_save = i();
|
||||
const int p_a_i_a_i_m_i_save = i();
|
||||
const Outer l_a[4] = tint_symbol_4(a, 0u);
|
||||
const Outer l_a_i = tint_symbol_5(a, (256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a[4] = tint_symbol_6(a, (256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a_i = tint_symbol_7(a, ((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const matrix<float16_t, 2, 2> l_a_i_a_i_m = tint_symbol_8(a, ((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const Outer l_a[4] = a_load(0u);
|
||||
const Outer l_a_i = a_load_1((256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a[4] = a_load_2((256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a_i = a_load_3(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const matrix<float16_t, 2, 2> l_a_i_a_i_m = a_load_4(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const uint scalar_offset_2 = ((((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))) + (4u * uint(p_a_i_a_i_m_i_save)))) / 4;
|
||||
uint ubo_load_2 = a[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
const vector<float16_t, 2> l_a_i_a_i_m_i = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16)));
|
||||
@@ -79,6 +79,3 @@ void f() {
|
||||
const float16_t l_a_i_a_i_m_i_i = float16_t(f16tof32(((a[scalar_offset_index / 4][scalar_offset_index % 4] >> (scalar_offset_bytes % 4 == 0 ? 0 : 16)) & 0xFFFF)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000270DFBEAD70(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,41 +11,41 @@ cbuffer cbuffer_a : register(b0, space0) {
|
||||
uint4 a[64];
|
||||
};
|
||||
|
||||
matrix<float16_t, 2, 2> tint_symbol_4(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 2, 2> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
|
||||
uint ubo_load = a[scalar_offset / 4][scalar_offset % 4];
|
||||
const uint scalar_offset_1 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
uint ubo_load_1 = a[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
return matrix<float16_t, 2, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))));
|
||||
}
|
||||
|
||||
Inner tint_symbol_3(uint4 buffer[64], uint offset) {
|
||||
const Inner tint_symbol_7 = {tint_symbol_4(buffer, (offset + 0u))};
|
||||
return tint_symbol_7;
|
||||
Inner a_load_3(uint offset) {
|
||||
const Inner tint_symbol = {a_load_4((offset + 0u))};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef Inner tint_symbol_2_ret[4];
|
||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[64], uint offset) {
|
||||
typedef Inner a_load_2_ret[4];
|
||||
a_load_2_ret a_load_2(uint offset) {
|
||||
Inner arr[4] = (Inner[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_3(buffer, (offset + (i * 64u)));
|
||||
arr[i] = a_load_3((offset + (i * 64u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
Outer tint_symbol_1(uint4 buffer[64], uint offset) {
|
||||
const Outer tint_symbol_8 = {tint_symbol_2(buffer, (offset + 0u))};
|
||||
return tint_symbol_8;
|
||||
Outer a_load_1(uint offset) {
|
||||
const Outer tint_symbol_1 = {a_load_2((offset + 0u))};
|
||||
return tint_symbol_1;
|
||||
}
|
||||
|
||||
typedef Outer tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
||||
typedef Outer a_load_ret[4];
|
||||
a_load_ret a_load(uint offset) {
|
||||
Outer arr_1[4] = (Outer[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr_1[i_1] = tint_symbol_1(buffer, (offset + (i_1 * 256u)));
|
||||
arr_1[i_1] = a_load_1((offset + (i_1 * 256u)));
|
||||
}
|
||||
}
|
||||
return arr_1;
|
||||
@@ -53,16 +53,13 @@ tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const Outer l_a[4] = tint_symbol(a, 0u);
|
||||
const Outer l_a_3 = tint_symbol_1(a, 768u);
|
||||
const Inner l_a_3_a[4] = tint_symbol_2(a, 768u);
|
||||
const Inner l_a_3_a_2 = tint_symbol_3(a, 896u);
|
||||
const matrix<float16_t, 2, 2> l_a_3_a_2_m = tint_symbol_4(a, 896u);
|
||||
const Outer l_a[4] = a_load(0u);
|
||||
const Outer l_a_3 = a_load_1(768u);
|
||||
const Inner l_a_3_a[4] = a_load_2(768u);
|
||||
const Inner l_a_3_a_2 = a_load_3(896u);
|
||||
const matrix<float16_t, 2, 2> l_a_3_a_2_m = a_load_4(896u);
|
||||
uint ubo_load_2 = a[56].y;
|
||||
const vector<float16_t, 2> l_a_3_a_2_m_1 = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16)));
|
||||
const float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].y) & 0xFFFF)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000025C8106DF60(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -4,23 +4,20 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
uint4 u[32];
|
||||
};
|
||||
|
||||
matrix<float16_t, 2, 2> tint_symbol(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 2> u_load(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
|
||||
uint ubo_load = u[scalar_offset / 4][scalar_offset % 4];
|
||||
const uint scalar_offset_1 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
uint ubo_load_1 = u[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
return matrix<float16_t, 2, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))));
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const matrix<float16_t, 2, 2> t = transpose(tint_symbol(u, 260u));
|
||||
const matrix<float16_t, 2, 2> t = transpose(u_load(260u));
|
||||
uint ubo_load_2 = u[0].z;
|
||||
const float16_t l = length(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))).yx);
|
||||
uint ubo_load_3 = u[0].z;
|
||||
const float16_t a = abs(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))).yx.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002973821CED0(5,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -25,27 +25,27 @@ void d(vector<float16_t, 2> v) {
|
||||
void e(float16_t f_1) {
|
||||
}
|
||||
|
||||
matrix<float16_t, 2, 2> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 2> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
|
||||
uint ubo_load = u[scalar_offset / 4][scalar_offset % 4];
|
||||
const uint scalar_offset_1 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
uint ubo_load_1 = u[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
return matrix<float16_t, 2, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_2 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_3 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_2 / 4][scalar_offset_2 % 4]), tint_symbol_3(buffer, (offset + 4u)), asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_2 / 4][scalar_offset_2 % 4]), u_load_3((offset + 4u)), asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 128u)));
|
||||
arr[i] = u_load_1((offset + (i * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -53,15 +53,12 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
a(tint_symbol(u, 0u));
|
||||
b(tint_symbol_1(u, 256u));
|
||||
c(tint_symbol_3(u, 260u));
|
||||
a(u_load(0u));
|
||||
b(u_load_1(256u));
|
||||
c(u_load_3(260u));
|
||||
uint ubo_load_2 = u[0].z;
|
||||
d(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))).yx);
|
||||
uint ubo_load_3 = u[0].z;
|
||||
e(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))).yx.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000029EA87296E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,27 +11,27 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
static S p[4] = (S[4])0;
|
||||
|
||||
matrix<float16_t, 2, 2> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 2> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
|
||||
uint ubo_load = u[scalar_offset / 4][scalar_offset % 4];
|
||||
const uint scalar_offset_1 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
uint ubo_load_1 = u[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
return matrix<float16_t, 2, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_2 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_3 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_2 / 4][scalar_offset_2 % 4]), tint_symbol_3(buffer, (offset + 4u)), asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_2 / 4][scalar_offset_2 % 4]), u_load_3((offset + 4u)), asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 128u)));
|
||||
arr[i] = u_load_1((offset + (i * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -39,13 +39,10 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
p = tint_symbol(u, 0u);
|
||||
p[1] = tint_symbol_1(u, 256u);
|
||||
p[3].m = tint_symbol_3(u, 260u);
|
||||
p = u_load(0u);
|
||||
p[1] = u_load_1(256u);
|
||||
p[3].m = u_load_3(260u);
|
||||
uint ubo_load_2 = u[0].z;
|
||||
p[1].m[0] = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))).yx;
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000172713CA4A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,47 +11,47 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
RWByteAddressBuffer s : register(u1, space0);
|
||||
|
||||
void tint_symbol_3(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 2, 2> value) {
|
||||
buffer.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
||||
buffer.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
||||
void s_store_3(uint offset, matrix<float16_t, 2, 2> value) {
|
||||
s.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
||||
s.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
||||
}
|
||||
|
||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, S value) {
|
||||
buffer.Store((offset + 0u), asuint(value.before));
|
||||
tint_symbol_3(buffer, (offset + 4u), value.m);
|
||||
buffer.Store((offset + 64u), asuint(value.after));
|
||||
void s_store_1(uint offset, S value) {
|
||||
s.Store((offset + 0u), asuint(value.before));
|
||||
s_store_3((offset + 4u), value.m);
|
||||
s.Store((offset + 64u), asuint(value.after));
|
||||
}
|
||||
|
||||
void tint_symbol(RWByteAddressBuffer buffer, uint offset, S value[4]) {
|
||||
S array[4] = value;
|
||||
void s_store(uint offset, S value[4]) {
|
||||
S array_1[4] = value;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
tint_symbol_1(buffer, (offset + (i * 128u)), array[i]);
|
||||
s_store_1((offset + (i * 128u)), array_1[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
matrix<float16_t, 2, 2> tint_symbol_8(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 2> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
|
||||
uint ubo_load = u[scalar_offset / 4][scalar_offset % 4];
|
||||
const uint scalar_offset_1 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
uint ubo_load_1 = u[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
return matrix<float16_t, 2, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))));
|
||||
}
|
||||
|
||||
S tint_symbol_6(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_2 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_3 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_10 = {asint(buffer[scalar_offset_2 / 4][scalar_offset_2 % 4]), tint_symbol_8(buffer, (offset + 4u)), asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol_10;
|
||||
const S tint_symbol = {asint(u[scalar_offset_2 / 4][scalar_offset_2 % 4]), u_load_3((offset + 4u)), asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_5_ret[4];
|
||||
tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_6(buffer, (offset + (i_1 * 128u)));
|
||||
arr[i_1] = u_load_1((offset + (i_1 * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -59,13 +59,10 @@ tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
tint_symbol(s, 0u, tint_symbol_5(u, 0u));
|
||||
tint_symbol_1(s, 128u, tint_symbol_6(u, 256u));
|
||||
tint_symbol_3(s, 388u, tint_symbol_8(u, 260u));
|
||||
s_store(0u, u_load(0u));
|
||||
s_store_1(128u, u_load_1(256u));
|
||||
s_store_3(388u, u_load_3(260u));
|
||||
uint ubo_load_2 = u[0].z;
|
||||
s.Store<vector<float16_t, 2> >(132u, vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))).yx);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001A0472DA2E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -15,27 +15,27 @@ struct tint_symbol_1 {
|
||||
uint local_invocation_index : SV_GroupIndex;
|
||||
};
|
||||
|
||||
matrix<float16_t, 2, 2> tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 2> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
|
||||
uint ubo_load = u[scalar_offset / 4][scalar_offset % 4];
|
||||
const uint scalar_offset_1 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
uint ubo_load_1 = u[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
return matrix<float16_t, 2, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))));
|
||||
}
|
||||
|
||||
S tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_2 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_3 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_8 = {asint(buffer[scalar_offset_2 / 4][scalar_offset_2 % 4]), tint_symbol_5(buffer, (offset + 4u)), asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol_8;
|
||||
const S tint_symbol_3 = {asint(u[scalar_offset_2 / 4][scalar_offset_2 % 4]), u_load_3((offset + 4u)), asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol_3;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_2_ret[4];
|
||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_3(buffer, (offset + (i_1 * 128u)));
|
||||
arr[i_1] = u_load_1((offset + (i_1 * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -45,14 +45,14 @@ void f_inner(uint local_invocation_index) {
|
||||
{
|
||||
for(uint idx = local_invocation_index; (idx < 4u); idx = (idx + 1u)) {
|
||||
const uint i = idx;
|
||||
const S tint_symbol_7 = (S)0;
|
||||
w[i] = tint_symbol_7;
|
||||
const S tint_symbol_2 = (S)0;
|
||||
w[i] = tint_symbol_2;
|
||||
}
|
||||
}
|
||||
GroupMemoryBarrierWithGroupSync();
|
||||
w = tint_symbol_2(u, 0u);
|
||||
w[1] = tint_symbol_3(u, 256u);
|
||||
w[3].m = tint_symbol_5(u, 260u);
|
||||
w = u_load(0u);
|
||||
w[1] = u_load_1(256u);
|
||||
w[3].m = u_load_3(260u);
|
||||
uint ubo_load_2 = u[0].z;
|
||||
w[1].m[0] = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))).yx;
|
||||
}
|
||||
@@ -62,6 +62,3 @@ void f(tint_symbol_1 tint_symbol) {
|
||||
f_inner(tint_symbol.local_invocation_index);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001CABCCF0160(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -17,47 +17,47 @@ int i() {
|
||||
return counter;
|
||||
}
|
||||
|
||||
matrix<float16_t, 2, 3> tint_symbol_8(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 2, 3> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
return matrix<float16_t, 2, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]));
|
||||
}
|
||||
|
||||
Inner tint_symbol_7(uint4 buffer[64], uint offset) {
|
||||
const Inner tint_symbol_11 = {tint_symbol_8(buffer, (offset + 0u))};
|
||||
return tint_symbol_11;
|
||||
Inner a_load_3(uint offset) {
|
||||
const Inner tint_symbol_4 = {a_load_4((offset + 0u))};
|
||||
return tint_symbol_4;
|
||||
}
|
||||
|
||||
typedef Inner tint_symbol_6_ret[4];
|
||||
tint_symbol_6_ret tint_symbol_6(uint4 buffer[64], uint offset) {
|
||||
typedef Inner a_load_2_ret[4];
|
||||
a_load_2_ret a_load_2(uint offset) {
|
||||
Inner arr[4] = (Inner[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_7(buffer, (offset + (i_1 * 64u)));
|
||||
arr[i_1] = a_load_3((offset + (i_1 * 64u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
Outer tint_symbol_5(uint4 buffer[64], uint offset) {
|
||||
const Outer tint_symbol_12 = {tint_symbol_6(buffer, (offset + 0u))};
|
||||
return tint_symbol_12;
|
||||
Outer a_load_1(uint offset) {
|
||||
const Outer tint_symbol_5 = {a_load_2((offset + 0u))};
|
||||
return tint_symbol_5;
|
||||
}
|
||||
|
||||
typedef Outer tint_symbol_4_ret[4];
|
||||
tint_symbol_4_ret tint_symbol_4(uint4 buffer[64], uint offset) {
|
||||
typedef Outer a_load_ret[4];
|
||||
a_load_ret a_load(uint offset) {
|
||||
Outer arr_1[4] = (Outer[4])0;
|
||||
{
|
||||
for(uint i_2 = 0u; (i_2 < 4u); i_2 = (i_2 + 1u)) {
|
||||
arr_1[i_2] = tint_symbol_5(buffer, (offset + (i_2 * 256u)));
|
||||
arr_1[i_2] = a_load_1((offset + (i_2 * 256u)));
|
||||
}
|
||||
}
|
||||
return arr_1;
|
||||
@@ -68,11 +68,11 @@ void f() {
|
||||
const int p_a_i_save = i();
|
||||
const int p_a_i_a_i_save = i();
|
||||
const int p_a_i_a_i_m_i_save = i();
|
||||
const Outer l_a[4] = tint_symbol_4(a, 0u);
|
||||
const Outer l_a_i = tint_symbol_5(a, (256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a[4] = tint_symbol_6(a, (256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a_i = tint_symbol_7(a, ((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const matrix<float16_t, 2, 3> l_a_i_a_i_m = tint_symbol_8(a, ((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const Outer l_a[4] = a_load(0u);
|
||||
const Outer l_a_i = a_load_1((256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a[4] = a_load_2((256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a_i = a_load_3(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const matrix<float16_t, 2, 3> l_a_i_a_i_m = a_load_4(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const uint scalar_offset_2 = ((((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))) + (8u * uint(p_a_i_a_i_m_i_save)))) / 4;
|
||||
uint4 ubo_load_5 = a[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
@@ -88,6 +88,3 @@ void f() {
|
||||
const float16_t l_a_i_a_i_m_i_i = float16_t(f16tof32(((a[scalar_offset_index / 4][scalar_offset_index % 4] >> (scalar_offset_bytes % 4 == 0 ? 0 : 16)) & 0xFFFF)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000021B8B701620(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,47 +11,47 @@ cbuffer cbuffer_a : register(b0, space0) {
|
||||
uint4 a[64];
|
||||
};
|
||||
|
||||
matrix<float16_t, 2, 3> tint_symbol_4(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 2, 3> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
return matrix<float16_t, 2, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]));
|
||||
}
|
||||
|
||||
Inner tint_symbol_3(uint4 buffer[64], uint offset) {
|
||||
const Inner tint_symbol_7 = {tint_symbol_4(buffer, (offset + 0u))};
|
||||
return tint_symbol_7;
|
||||
Inner a_load_3(uint offset) {
|
||||
const Inner tint_symbol = {a_load_4((offset + 0u))};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef Inner tint_symbol_2_ret[4];
|
||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[64], uint offset) {
|
||||
typedef Inner a_load_2_ret[4];
|
||||
a_load_2_ret a_load_2(uint offset) {
|
||||
Inner arr[4] = (Inner[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_3(buffer, (offset + (i * 64u)));
|
||||
arr[i] = a_load_3((offset + (i * 64u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
Outer tint_symbol_1(uint4 buffer[64], uint offset) {
|
||||
const Outer tint_symbol_8 = {tint_symbol_2(buffer, (offset + 0u))};
|
||||
return tint_symbol_8;
|
||||
Outer a_load_1(uint offset) {
|
||||
const Outer tint_symbol_1 = {a_load_2((offset + 0u))};
|
||||
return tint_symbol_1;
|
||||
}
|
||||
|
||||
typedef Outer tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
||||
typedef Outer a_load_ret[4];
|
||||
a_load_ret a_load(uint offset) {
|
||||
Outer arr_1[4] = (Outer[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr_1[i_1] = tint_symbol_1(buffer, (offset + (i_1 * 256u)));
|
||||
arr_1[i_1] = a_load_1((offset + (i_1 * 256u)));
|
||||
}
|
||||
}
|
||||
return arr_1;
|
||||
@@ -59,11 +59,11 @@ tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const Outer l_a[4] = tint_symbol(a, 0u);
|
||||
const Outer l_a_3 = tint_symbol_1(a, 768u);
|
||||
const Inner l_a_3_a[4] = tint_symbol_2(a, 768u);
|
||||
const Inner l_a_3_a_2 = tint_symbol_3(a, 896u);
|
||||
const matrix<float16_t, 2, 3> l_a_3_a_2_m = tint_symbol_4(a, 896u);
|
||||
const Outer l_a[4] = a_load(0u);
|
||||
const Outer l_a_3 = a_load_1(768u);
|
||||
const Inner l_a_3_a[4] = a_load_2(768u);
|
||||
const Inner l_a_3_a_2 = a_load_3(896u);
|
||||
const matrix<float16_t, 2, 3> l_a_3_a_2_m = a_load_4(896u);
|
||||
uint2 ubo_load_4 = a[56].zw;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
@@ -71,6 +71,3 @@ void f() {
|
||||
const float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].z) & 0xFFFF)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000016A3B044D10(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -4,14 +4,14 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
uint4 u[32];
|
||||
};
|
||||
|
||||
matrix<float16_t, 2, 3> tint_symbol(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 3> u_load(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
@@ -20,7 +20,7 @@ matrix<float16_t, 2, 3> tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const matrix<float16_t, 3, 2> t = transpose(tint_symbol(u, 264u));
|
||||
const matrix<float16_t, 3, 2> t = transpose(u_load(264u));
|
||||
uint2 ubo_load_4 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
@@ -31,6 +31,3 @@ void f() {
|
||||
const float16_t a = abs(vector<float16_t, 3>(ubo_load_5_xz[0], ubo_load_5_y, ubo_load_5_xz[1]).zxy.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002BEEDB9DED0(5,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -25,33 +25,33 @@ void d(vector<float16_t, 3> v) {
|
||||
void e(float16_t f_1) {
|
||||
}
|
||||
|
||||
matrix<float16_t, 2, 3> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 3> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
return matrix<float16_t, 2, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_2 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_3 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_2 / 4][scalar_offset_2 % 4]), tint_symbol_3(buffer, (offset + 8u)), asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_2 / 4][scalar_offset_2 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 128u)));
|
||||
arr[i] = u_load_1((offset + (i * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -59,9 +59,9 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
a(tint_symbol(u, 0u));
|
||||
b(tint_symbol_1(u, 256u));
|
||||
c(tint_symbol_3(u, 264u));
|
||||
a(u_load(0u));
|
||||
b(u_load_1(256u));
|
||||
c(u_load_3(264u));
|
||||
uint2 ubo_load_4 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
@@ -72,6 +72,3 @@ void f() {
|
||||
e(vector<float16_t, 3>(ubo_load_5_xz[0], ubo_load_5_y, ubo_load_5_xz[1]).zxy.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002273DEDC980(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,33 +11,33 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
static S p[4] = (S[4])0;
|
||||
|
||||
matrix<float16_t, 2, 3> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 3> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
return matrix<float16_t, 2, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_2 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_3 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_2 / 4][scalar_offset_2 % 4]), tint_symbol_3(buffer, (offset + 8u)), asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_2 / 4][scalar_offset_2 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 128u)));
|
||||
arr[i] = u_load_1((offset + (i * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -45,15 +45,12 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
p = tint_symbol(u, 0u);
|
||||
p[1] = tint_symbol_1(u, 256u);
|
||||
p[3].m = tint_symbol_3(u, 264u);
|
||||
p = u_load(0u);
|
||||
p[1] = u_load_1(256u);
|
||||
p[3].m = u_load_3(264u);
|
||||
uint2 ubo_load_4 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
p[1].m[0] = vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]).zxy;
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000296576AF9E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,53 +11,53 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
RWByteAddressBuffer s : register(u1, space0);
|
||||
|
||||
void tint_symbol_3(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 2, 3> value) {
|
||||
buffer.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
||||
buffer.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
||||
void s_store_3(uint offset, matrix<float16_t, 2, 3> value) {
|
||||
s.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
||||
s.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
||||
}
|
||||
|
||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, S value) {
|
||||
buffer.Store((offset + 0u), asuint(value.before));
|
||||
tint_symbol_3(buffer, (offset + 8u), value.m);
|
||||
buffer.Store((offset + 64u), asuint(value.after));
|
||||
void s_store_1(uint offset, S value) {
|
||||
s.Store((offset + 0u), asuint(value.before));
|
||||
s_store_3((offset + 8u), value.m);
|
||||
s.Store((offset + 64u), asuint(value.after));
|
||||
}
|
||||
|
||||
void tint_symbol(RWByteAddressBuffer buffer, uint offset, S value[4]) {
|
||||
S array[4] = value;
|
||||
void s_store(uint offset, S value[4]) {
|
||||
S array_1[4] = value;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
tint_symbol_1(buffer, (offset + (i * 128u)), array[i]);
|
||||
s_store_1((offset + (i * 128u)), array_1[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
matrix<float16_t, 2, 3> tint_symbol_8(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 3> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
return matrix<float16_t, 2, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_6(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_2 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_3 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_10 = {asint(buffer[scalar_offset_2 / 4][scalar_offset_2 % 4]), tint_symbol_8(buffer, (offset + 8u)), asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol_10;
|
||||
const S tint_symbol = {asint(u[scalar_offset_2 / 4][scalar_offset_2 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_5_ret[4];
|
||||
tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_6(buffer, (offset + (i_1 * 128u)));
|
||||
arr[i_1] = u_load_1((offset + (i_1 * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -65,15 +65,12 @@ tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
tint_symbol(s, 0u, tint_symbol_5(u, 0u));
|
||||
tint_symbol_1(s, 128u, tint_symbol_6(u, 256u));
|
||||
tint_symbol_3(s, 392u, tint_symbol_8(u, 264u));
|
||||
s_store(0u, u_load(0u));
|
||||
s_store_1(128u, u_load_1(256u));
|
||||
s_store_3(392u, u_load_3(264u));
|
||||
uint2 ubo_load_4 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
s.Store<vector<float16_t, 3> >(136u, vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]).zxy);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001EAD8916A10(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -15,33 +15,33 @@ struct tint_symbol_1 {
|
||||
uint local_invocation_index : SV_GroupIndex;
|
||||
};
|
||||
|
||||
matrix<float16_t, 2, 3> tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 3> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
return matrix<float16_t, 2, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_2 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_3 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_8 = {asint(buffer[scalar_offset_2 / 4][scalar_offset_2 % 4]), tint_symbol_5(buffer, (offset + 8u)), asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol_8;
|
||||
const S tint_symbol_3 = {asint(u[scalar_offset_2 / 4][scalar_offset_2 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol_3;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_2_ret[4];
|
||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_3(buffer, (offset + (i_1 * 128u)));
|
||||
arr[i_1] = u_load_1((offset + (i_1 * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -51,14 +51,14 @@ void f_inner(uint local_invocation_index) {
|
||||
{
|
||||
for(uint idx = local_invocation_index; (idx < 4u); idx = (idx + 1u)) {
|
||||
const uint i = idx;
|
||||
const S tint_symbol_7 = (S)0;
|
||||
w[i] = tint_symbol_7;
|
||||
const S tint_symbol_2 = (S)0;
|
||||
w[i] = tint_symbol_2;
|
||||
}
|
||||
}
|
||||
GroupMemoryBarrierWithGroupSync();
|
||||
w = tint_symbol_2(u, 0u);
|
||||
w[1] = tint_symbol_3(u, 256u);
|
||||
w[3].m = tint_symbol_5(u, 264u);
|
||||
w = u_load(0u);
|
||||
w[1] = u_load_1(256u);
|
||||
w[3].m = u_load_3(264u);
|
||||
uint2 ubo_load_4 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
@@ -70,6 +70,3 @@ void f(tint_symbol_1 tint_symbol) {
|
||||
f_inner(tint_symbol.local_invocation_index);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001CE6EDD85C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -17,47 +17,47 @@ int i() {
|
||||
return counter;
|
||||
}
|
||||
|
||||
matrix<float16_t, 2, 4> tint_symbol_8(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 2, 4> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
return matrix<float16_t, 2, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]));
|
||||
}
|
||||
|
||||
Inner tint_symbol_7(uint4 buffer[64], uint offset) {
|
||||
const Inner tint_symbol_11 = {tint_symbol_8(buffer, (offset + 0u))};
|
||||
return tint_symbol_11;
|
||||
Inner a_load_3(uint offset) {
|
||||
const Inner tint_symbol_4 = {a_load_4((offset + 0u))};
|
||||
return tint_symbol_4;
|
||||
}
|
||||
|
||||
typedef Inner tint_symbol_6_ret[4];
|
||||
tint_symbol_6_ret tint_symbol_6(uint4 buffer[64], uint offset) {
|
||||
typedef Inner a_load_2_ret[4];
|
||||
a_load_2_ret a_load_2(uint offset) {
|
||||
Inner arr[4] = (Inner[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_7(buffer, (offset + (i_1 * 64u)));
|
||||
arr[i_1] = a_load_3((offset + (i_1 * 64u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
Outer tint_symbol_5(uint4 buffer[64], uint offset) {
|
||||
const Outer tint_symbol_12 = {tint_symbol_6(buffer, (offset + 0u))};
|
||||
return tint_symbol_12;
|
||||
Outer a_load_1(uint offset) {
|
||||
const Outer tint_symbol_5 = {a_load_2((offset + 0u))};
|
||||
return tint_symbol_5;
|
||||
}
|
||||
|
||||
typedef Outer tint_symbol_4_ret[4];
|
||||
tint_symbol_4_ret tint_symbol_4(uint4 buffer[64], uint offset) {
|
||||
typedef Outer a_load_ret[4];
|
||||
a_load_ret a_load(uint offset) {
|
||||
Outer arr_1[4] = (Outer[4])0;
|
||||
{
|
||||
for(uint i_2 = 0u; (i_2 < 4u); i_2 = (i_2 + 1u)) {
|
||||
arr_1[i_2] = tint_symbol_5(buffer, (offset + (i_2 * 256u)));
|
||||
arr_1[i_2] = a_load_1((offset + (i_2 * 256u)));
|
||||
}
|
||||
}
|
||||
return arr_1;
|
||||
@@ -68,11 +68,11 @@ void f() {
|
||||
const int p_a_i_save = i();
|
||||
const int p_a_i_a_i_save = i();
|
||||
const int p_a_i_a_i_m_i_save = i();
|
||||
const Outer l_a[4] = tint_symbol_4(a, 0u);
|
||||
const Outer l_a_i = tint_symbol_5(a, (256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a[4] = tint_symbol_6(a, (256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a_i = tint_symbol_7(a, ((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const matrix<float16_t, 2, 4> l_a_i_a_i_m = tint_symbol_8(a, ((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const Outer l_a[4] = a_load(0u);
|
||||
const Outer l_a_i = a_load_1((256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a[4] = a_load_2((256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a_i = a_load_3(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const matrix<float16_t, 2, 4> l_a_i_a_i_m = a_load_4(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const uint scalar_offset_2 = ((((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))) + (8u * uint(p_a_i_a_i_m_i_save)))) / 4;
|
||||
uint4 ubo_load_5 = a[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
@@ -88,6 +88,3 @@ void f() {
|
||||
const float16_t l_a_i_a_i_m_i_i = float16_t(f16tof32(((a[scalar_offset_index / 4][scalar_offset_index % 4] >> (scalar_offset_bytes % 4 == 0 ? 0 : 16)) & 0xFFFF)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001DE39EE1520(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,47 +11,47 @@ cbuffer cbuffer_a : register(b0, space0) {
|
||||
uint4 a[64];
|
||||
};
|
||||
|
||||
matrix<float16_t, 2, 4> tint_symbol_4(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 2, 4> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
return matrix<float16_t, 2, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]));
|
||||
}
|
||||
|
||||
Inner tint_symbol_3(uint4 buffer[64], uint offset) {
|
||||
const Inner tint_symbol_7 = {tint_symbol_4(buffer, (offset + 0u))};
|
||||
return tint_symbol_7;
|
||||
Inner a_load_3(uint offset) {
|
||||
const Inner tint_symbol = {a_load_4((offset + 0u))};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef Inner tint_symbol_2_ret[4];
|
||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[64], uint offset) {
|
||||
typedef Inner a_load_2_ret[4];
|
||||
a_load_2_ret a_load_2(uint offset) {
|
||||
Inner arr[4] = (Inner[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_3(buffer, (offset + (i * 64u)));
|
||||
arr[i] = a_load_3((offset + (i * 64u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
Outer tint_symbol_1(uint4 buffer[64], uint offset) {
|
||||
const Outer tint_symbol_8 = {tint_symbol_2(buffer, (offset + 0u))};
|
||||
return tint_symbol_8;
|
||||
Outer a_load_1(uint offset) {
|
||||
const Outer tint_symbol_1 = {a_load_2((offset + 0u))};
|
||||
return tint_symbol_1;
|
||||
}
|
||||
|
||||
typedef Outer tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
||||
typedef Outer a_load_ret[4];
|
||||
a_load_ret a_load(uint offset) {
|
||||
Outer arr_1[4] = (Outer[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr_1[i_1] = tint_symbol_1(buffer, (offset + (i_1 * 256u)));
|
||||
arr_1[i_1] = a_load_1((offset + (i_1 * 256u)));
|
||||
}
|
||||
}
|
||||
return arr_1;
|
||||
@@ -59,11 +59,11 @@ tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const Outer l_a[4] = tint_symbol(a, 0u);
|
||||
const Outer l_a_3 = tint_symbol_1(a, 768u);
|
||||
const Inner l_a_3_a[4] = tint_symbol_2(a, 768u);
|
||||
const Inner l_a_3_a_2 = tint_symbol_3(a, 896u);
|
||||
const matrix<float16_t, 2, 4> l_a_3_a_2_m = tint_symbol_4(a, 896u);
|
||||
const Outer l_a[4] = a_load(0u);
|
||||
const Outer l_a_3 = a_load_1(768u);
|
||||
const Inner l_a_3_a[4] = a_load_2(768u);
|
||||
const Inner l_a_3_a_2 = a_load_3(896u);
|
||||
const matrix<float16_t, 2, 4> l_a_3_a_2_m = a_load_4(896u);
|
||||
uint2 ubo_load_4 = a[56].zw;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
@@ -71,6 +71,3 @@ void f() {
|
||||
const float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].z) & 0xFFFF)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001CF0BABD660(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -4,14 +4,14 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
uint4 u[32];
|
||||
};
|
||||
|
||||
matrix<float16_t, 2, 4> tint_symbol(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 4> u_load(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
@@ -20,7 +20,7 @@ matrix<float16_t, 2, 4> tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const matrix<float16_t, 4, 2> t = transpose(tint_symbol(u, 264u));
|
||||
const matrix<float16_t, 4, 2> t = transpose(u_load(264u));
|
||||
uint2 ubo_load_4 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
@@ -31,6 +31,3 @@ void f() {
|
||||
const float16_t a = abs(vector<float16_t, 4>(ubo_load_5_xz[0], ubo_load_5_yw[0], ubo_load_5_xz[1], ubo_load_5_yw[1]).ywxz.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002535B2A2420(5,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -25,33 +25,33 @@ void d(vector<float16_t, 4> v) {
|
||||
void e(float16_t f_1) {
|
||||
}
|
||||
|
||||
matrix<float16_t, 2, 4> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 4> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
return matrix<float16_t, 2, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_2 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_3 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_2 / 4][scalar_offset_2 % 4]), tint_symbol_3(buffer, (offset + 8u)), asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_2 / 4][scalar_offset_2 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 128u)));
|
||||
arr[i] = u_load_1((offset + (i * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -59,9 +59,9 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
a(tint_symbol(u, 0u));
|
||||
b(tint_symbol_1(u, 256u));
|
||||
c(tint_symbol_3(u, 264u));
|
||||
a(u_load(0u));
|
||||
b(u_load_1(256u));
|
||||
c(u_load_3(264u));
|
||||
uint2 ubo_load_4 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
@@ -72,6 +72,3 @@ void f() {
|
||||
e(vector<float16_t, 4>(ubo_load_5_xz[0], ubo_load_5_yw[0], ubo_load_5_xz[1], ubo_load_5_yw[1]).ywxz.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001B118E73590(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,33 +11,33 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
static S p[4] = (S[4])0;
|
||||
|
||||
matrix<float16_t, 2, 4> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 4> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
return matrix<float16_t, 2, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_2 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_3 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_2 / 4][scalar_offset_2 % 4]), tint_symbol_3(buffer, (offset + 8u)), asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_2 / 4][scalar_offset_2 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 128u)));
|
||||
arr[i] = u_load_1((offset + (i * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -45,15 +45,12 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
p = tint_symbol(u, 0u);
|
||||
p[1] = tint_symbol_1(u, 256u);
|
||||
p[3].m = tint_symbol_3(u, 264u);
|
||||
p = u_load(0u);
|
||||
p[1] = u_load_1(256u);
|
||||
p[3].m = u_load_3(264u);
|
||||
uint2 ubo_load_4 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
p[1].m[0] = vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]).ywxz;
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000012E5540B3A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,53 +11,53 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
RWByteAddressBuffer s : register(u1, space0);
|
||||
|
||||
void tint_symbol_3(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 2, 4> value) {
|
||||
buffer.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||
buffer.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||
void s_store_3(uint offset, matrix<float16_t, 2, 4> value) {
|
||||
s.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||
s.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||
}
|
||||
|
||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, S value) {
|
||||
buffer.Store((offset + 0u), asuint(value.before));
|
||||
tint_symbol_3(buffer, (offset + 8u), value.m);
|
||||
buffer.Store((offset + 64u), asuint(value.after));
|
||||
void s_store_1(uint offset, S value) {
|
||||
s.Store((offset + 0u), asuint(value.before));
|
||||
s_store_3((offset + 8u), value.m);
|
||||
s.Store((offset + 64u), asuint(value.after));
|
||||
}
|
||||
|
||||
void tint_symbol(RWByteAddressBuffer buffer, uint offset, S value[4]) {
|
||||
S array[4] = value;
|
||||
void s_store(uint offset, S value[4]) {
|
||||
S array_1[4] = value;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
tint_symbol_1(buffer, (offset + (i * 128u)), array[i]);
|
||||
s_store_1((offset + (i * 128u)), array_1[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
matrix<float16_t, 2, 4> tint_symbol_8(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 4> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
return matrix<float16_t, 2, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_6(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_2 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_3 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_10 = {asint(buffer[scalar_offset_2 / 4][scalar_offset_2 % 4]), tint_symbol_8(buffer, (offset + 8u)), asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol_10;
|
||||
const S tint_symbol = {asint(u[scalar_offset_2 / 4][scalar_offset_2 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_5_ret[4];
|
||||
tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_6(buffer, (offset + (i_1 * 128u)));
|
||||
arr[i_1] = u_load_1((offset + (i_1 * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -65,15 +65,12 @@ tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
tint_symbol(s, 0u, tint_symbol_5(u, 0u));
|
||||
tint_symbol_1(s, 128u, tint_symbol_6(u, 256u));
|
||||
tint_symbol_3(s, 392u, tint_symbol_8(u, 264u));
|
||||
s_store(0u, u_load(0u));
|
||||
s_store_1(128u, u_load_1(256u));
|
||||
s_store_3(392u, u_load_3(264u));
|
||||
uint2 ubo_load_4 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
s.Store<vector<float16_t, 4> >(136u, vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]).ywxz);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000270F5E70100(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -15,33 +15,33 @@ struct tint_symbol_1 {
|
||||
uint local_invocation_index : SV_GroupIndex;
|
||||
};
|
||||
|
||||
matrix<float16_t, 2, 4> tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 4> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
return matrix<float16_t, 2, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_2 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_3 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_8 = {asint(buffer[scalar_offset_2 / 4][scalar_offset_2 % 4]), tint_symbol_5(buffer, (offset + 8u)), asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol_8;
|
||||
const S tint_symbol_3 = {asint(u[scalar_offset_2 / 4][scalar_offset_2 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol_3;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_2_ret[4];
|
||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_3(buffer, (offset + (i_1 * 128u)));
|
||||
arr[i_1] = u_load_1((offset + (i_1 * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -51,14 +51,14 @@ void f_inner(uint local_invocation_index) {
|
||||
{
|
||||
for(uint idx = local_invocation_index; (idx < 4u); idx = (idx + 1u)) {
|
||||
const uint i = idx;
|
||||
const S tint_symbol_7 = (S)0;
|
||||
w[i] = tint_symbol_7;
|
||||
const S tint_symbol_2 = (S)0;
|
||||
w[i] = tint_symbol_2;
|
||||
}
|
||||
}
|
||||
GroupMemoryBarrierWithGroupSync();
|
||||
w = tint_symbol_2(u, 0u);
|
||||
w[1] = tint_symbol_3(u, 256u);
|
||||
w[3].m = tint_symbol_5(u, 264u);
|
||||
w = u_load(0u);
|
||||
w[1] = u_load_1(256u);
|
||||
w[3].m = u_load_3(264u);
|
||||
uint2 ubo_load_4 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
@@ -70,6 +70,3 @@ void f(tint_symbol_1 tint_symbol) {
|
||||
f_inner(tint_symbol.local_invocation_index);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001B747E825C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -17,43 +17,43 @@ int i() {
|
||||
return counter;
|
||||
}
|
||||
|
||||
matrix<float16_t, 3, 2> tint_symbol_8(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 3, 2> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
|
||||
uint ubo_load = a[scalar_offset / 4][scalar_offset % 4];
|
||||
const uint scalar_offset_1 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
uint ubo_load_1 = a[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
const uint scalar_offset_2 = ((offset + 8u)) / 4;
|
||||
uint ubo_load_2 = buffer[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
uint ubo_load_2 = a[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
return matrix<float16_t, 3, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))));
|
||||
}
|
||||
|
||||
Inner tint_symbol_7(uint4 buffer[64], uint offset) {
|
||||
const Inner tint_symbol_11 = {tint_symbol_8(buffer, (offset + 0u))};
|
||||
return tint_symbol_11;
|
||||
Inner a_load_3(uint offset) {
|
||||
const Inner tint_symbol_4 = {a_load_4((offset + 0u))};
|
||||
return tint_symbol_4;
|
||||
}
|
||||
|
||||
typedef Inner tint_symbol_6_ret[4];
|
||||
tint_symbol_6_ret tint_symbol_6(uint4 buffer[64], uint offset) {
|
||||
typedef Inner a_load_2_ret[4];
|
||||
a_load_2_ret a_load_2(uint offset) {
|
||||
Inner arr[4] = (Inner[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_7(buffer, (offset + (i_1 * 64u)));
|
||||
arr[i_1] = a_load_3((offset + (i_1 * 64u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
Outer tint_symbol_5(uint4 buffer[64], uint offset) {
|
||||
const Outer tint_symbol_12 = {tint_symbol_6(buffer, (offset + 0u))};
|
||||
return tint_symbol_12;
|
||||
Outer a_load_1(uint offset) {
|
||||
const Outer tint_symbol_5 = {a_load_2((offset + 0u))};
|
||||
return tint_symbol_5;
|
||||
}
|
||||
|
||||
typedef Outer tint_symbol_4_ret[4];
|
||||
tint_symbol_4_ret tint_symbol_4(uint4 buffer[64], uint offset) {
|
||||
typedef Outer a_load_ret[4];
|
||||
a_load_ret a_load(uint offset) {
|
||||
Outer arr_1[4] = (Outer[4])0;
|
||||
{
|
||||
for(uint i_2 = 0u; (i_2 < 4u); i_2 = (i_2 + 1u)) {
|
||||
arr_1[i_2] = tint_symbol_5(buffer, (offset + (i_2 * 256u)));
|
||||
arr_1[i_2] = a_load_1((offset + (i_2 * 256u)));
|
||||
}
|
||||
}
|
||||
return arr_1;
|
||||
@@ -64,11 +64,11 @@ void f() {
|
||||
const int p_a_i_save = i();
|
||||
const int p_a_i_a_i_save = i();
|
||||
const int p_a_i_a_i_m_i_save = i();
|
||||
const Outer l_a[4] = tint_symbol_4(a, 0u);
|
||||
const Outer l_a_i = tint_symbol_5(a, (256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a[4] = tint_symbol_6(a, (256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a_i = tint_symbol_7(a, ((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const matrix<float16_t, 3, 2> l_a_i_a_i_m = tint_symbol_8(a, ((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const Outer l_a[4] = a_load(0u);
|
||||
const Outer l_a_i = a_load_1((256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a[4] = a_load_2((256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a_i = a_load_3(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const matrix<float16_t, 3, 2> l_a_i_a_i_m = a_load_4(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const uint scalar_offset_3 = ((((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))) + (4u * uint(p_a_i_a_i_m_i_save)))) / 4;
|
||||
uint ubo_load_3 = a[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
const vector<float16_t, 2> l_a_i_a_i_m_i = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16)));
|
||||
@@ -81,6 +81,3 @@ void f() {
|
||||
const float16_t l_a_i_a_i_m_i_i = float16_t(f16tof32(((a[scalar_offset_index / 4][scalar_offset_index % 4] >> (scalar_offset_bytes % 4 == 0 ? 0 : 16)) & 0xFFFF)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002078397D2F0(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,43 +11,43 @@ cbuffer cbuffer_a : register(b0, space0) {
|
||||
uint4 a[64];
|
||||
};
|
||||
|
||||
matrix<float16_t, 3, 2> tint_symbol_4(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 3, 2> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
|
||||
uint ubo_load = a[scalar_offset / 4][scalar_offset % 4];
|
||||
const uint scalar_offset_1 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
uint ubo_load_1 = a[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
const uint scalar_offset_2 = ((offset + 8u)) / 4;
|
||||
uint ubo_load_2 = buffer[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
uint ubo_load_2 = a[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
return matrix<float16_t, 3, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))));
|
||||
}
|
||||
|
||||
Inner tint_symbol_3(uint4 buffer[64], uint offset) {
|
||||
const Inner tint_symbol_7 = {tint_symbol_4(buffer, (offset + 0u))};
|
||||
return tint_symbol_7;
|
||||
Inner a_load_3(uint offset) {
|
||||
const Inner tint_symbol = {a_load_4((offset + 0u))};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef Inner tint_symbol_2_ret[4];
|
||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[64], uint offset) {
|
||||
typedef Inner a_load_2_ret[4];
|
||||
a_load_2_ret a_load_2(uint offset) {
|
||||
Inner arr[4] = (Inner[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_3(buffer, (offset + (i * 64u)));
|
||||
arr[i] = a_load_3((offset + (i * 64u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
Outer tint_symbol_1(uint4 buffer[64], uint offset) {
|
||||
const Outer tint_symbol_8 = {tint_symbol_2(buffer, (offset + 0u))};
|
||||
return tint_symbol_8;
|
||||
Outer a_load_1(uint offset) {
|
||||
const Outer tint_symbol_1 = {a_load_2((offset + 0u))};
|
||||
return tint_symbol_1;
|
||||
}
|
||||
|
||||
typedef Outer tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
||||
typedef Outer a_load_ret[4];
|
||||
a_load_ret a_load(uint offset) {
|
||||
Outer arr_1[4] = (Outer[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr_1[i_1] = tint_symbol_1(buffer, (offset + (i_1 * 256u)));
|
||||
arr_1[i_1] = a_load_1((offset + (i_1 * 256u)));
|
||||
}
|
||||
}
|
||||
return arr_1;
|
||||
@@ -55,16 +55,13 @@ tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const Outer l_a[4] = tint_symbol(a, 0u);
|
||||
const Outer l_a_3 = tint_symbol_1(a, 768u);
|
||||
const Inner l_a_3_a[4] = tint_symbol_2(a, 768u);
|
||||
const Inner l_a_3_a_2 = tint_symbol_3(a, 896u);
|
||||
const matrix<float16_t, 3, 2> l_a_3_a_2_m = tint_symbol_4(a, 896u);
|
||||
const Outer l_a[4] = a_load(0u);
|
||||
const Outer l_a_3 = a_load_1(768u);
|
||||
const Inner l_a_3_a[4] = a_load_2(768u);
|
||||
const Inner l_a_3_a_2 = a_load_3(896u);
|
||||
const matrix<float16_t, 3, 2> l_a_3_a_2_m = a_load_4(896u);
|
||||
uint ubo_load_3 = a[56].y;
|
||||
const vector<float16_t, 2> l_a_3_a_2_m_1 = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16)));
|
||||
const float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].y) & 0xFFFF)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000229471C1EC0(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -4,25 +4,22 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
uint4 u[32];
|
||||
};
|
||||
|
||||
matrix<float16_t, 3, 2> tint_symbol(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 2> u_load(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
|
||||
uint ubo_load = u[scalar_offset / 4][scalar_offset % 4];
|
||||
const uint scalar_offset_1 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
uint ubo_load_1 = u[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
const uint scalar_offset_2 = ((offset + 8u)) / 4;
|
||||
uint ubo_load_2 = buffer[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
uint ubo_load_2 = u[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
return matrix<float16_t, 3, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))));
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const matrix<float16_t, 2, 3> t = transpose(tint_symbol(u, 260u));
|
||||
const matrix<float16_t, 2, 3> t = transpose(u_load(260u));
|
||||
uint ubo_load_3 = u[0].z;
|
||||
const float16_t l = length(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))).yx);
|
||||
uint ubo_load_4 = u[0].z;
|
||||
const float16_t a = abs(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001CB6BBFDD80(5,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -25,29 +25,29 @@ void d(vector<float16_t, 2> v) {
|
||||
void e(float16_t f_1) {
|
||||
}
|
||||
|
||||
matrix<float16_t, 3, 2> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 2> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
|
||||
uint ubo_load = u[scalar_offset / 4][scalar_offset % 4];
|
||||
const uint scalar_offset_1 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
uint ubo_load_1 = u[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
const uint scalar_offset_2 = ((offset + 8u)) / 4;
|
||||
uint ubo_load_2 = buffer[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
uint ubo_load_2 = u[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
return matrix<float16_t, 3, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_3 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_4 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4]), tint_symbol_3(buffer, (offset + 4u)), asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4]), u_load_3((offset + 4u)), asint(u[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 128u)));
|
||||
arr[i] = u_load_1((offset + (i * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -55,15 +55,12 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
a(tint_symbol(u, 0u));
|
||||
b(tint_symbol_1(u, 256u));
|
||||
c(tint_symbol_3(u, 260u));
|
||||
a(u_load(0u));
|
||||
b(u_load_1(256u));
|
||||
c(u_load_3(260u));
|
||||
uint ubo_load_3 = u[0].z;
|
||||
d(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))).yx);
|
||||
uint ubo_load_4 = u[0].z;
|
||||
e(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000017A6DD8FA30(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,29 +11,29 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
static S p[4] = (S[4])0;
|
||||
|
||||
matrix<float16_t, 3, 2> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 2> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
|
||||
uint ubo_load = u[scalar_offset / 4][scalar_offset % 4];
|
||||
const uint scalar_offset_1 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
uint ubo_load_1 = u[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
const uint scalar_offset_2 = ((offset + 8u)) / 4;
|
||||
uint ubo_load_2 = buffer[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
uint ubo_load_2 = u[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
return matrix<float16_t, 3, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_3 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_4 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4]), tint_symbol_3(buffer, (offset + 4u)), asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4]), u_load_3((offset + 4u)), asint(u[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 128u)));
|
||||
arr[i] = u_load_1((offset + (i * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -41,13 +41,10 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
p = tint_symbol(u, 0u);
|
||||
p[1] = tint_symbol_1(u, 256u);
|
||||
p[3].m = tint_symbol_3(u, 260u);
|
||||
p = u_load(0u);
|
||||
p[1] = u_load_1(256u);
|
||||
p[3].m = u_load_3(260u);
|
||||
uint ubo_load_3 = u[0].z;
|
||||
p[1].m[0] = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))).yx;
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000022E1691F8F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,50 +11,50 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
RWByteAddressBuffer s : register(u1, space0);
|
||||
|
||||
void tint_symbol_3(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 3, 2> value) {
|
||||
buffer.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
||||
buffer.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
||||
buffer.Store<vector<float16_t, 2> >((offset + 8u), value[2u]);
|
||||
void s_store_3(uint offset, matrix<float16_t, 3, 2> value) {
|
||||
s.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
||||
s.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
||||
s.Store<vector<float16_t, 2> >((offset + 8u), value[2u]);
|
||||
}
|
||||
|
||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, S value) {
|
||||
buffer.Store((offset + 0u), asuint(value.before));
|
||||
tint_symbol_3(buffer, (offset + 4u), value.m);
|
||||
buffer.Store((offset + 64u), asuint(value.after));
|
||||
void s_store_1(uint offset, S value) {
|
||||
s.Store((offset + 0u), asuint(value.before));
|
||||
s_store_3((offset + 4u), value.m);
|
||||
s.Store((offset + 64u), asuint(value.after));
|
||||
}
|
||||
|
||||
void tint_symbol(RWByteAddressBuffer buffer, uint offset, S value[4]) {
|
||||
S array[4] = value;
|
||||
void s_store(uint offset, S value[4]) {
|
||||
S array_1[4] = value;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
tint_symbol_1(buffer, (offset + (i * 128u)), array[i]);
|
||||
s_store_1((offset + (i * 128u)), array_1[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
matrix<float16_t, 3, 2> tint_symbol_8(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 2> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
|
||||
uint ubo_load = u[scalar_offset / 4][scalar_offset % 4];
|
||||
const uint scalar_offset_1 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
uint ubo_load_1 = u[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
const uint scalar_offset_2 = ((offset + 8u)) / 4;
|
||||
uint ubo_load_2 = buffer[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
uint ubo_load_2 = u[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
return matrix<float16_t, 3, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))));
|
||||
}
|
||||
|
||||
S tint_symbol_6(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_3 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_4 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_10 = {asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4]), tint_symbol_8(buffer, (offset + 4u)), asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol_10;
|
||||
const S tint_symbol = {asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4]), u_load_3((offset + 4u)), asint(u[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_5_ret[4];
|
||||
tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_6(buffer, (offset + (i_1 * 128u)));
|
||||
arr[i_1] = u_load_1((offset + (i_1 * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -62,13 +62,10 @@ tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
tint_symbol(s, 0u, tint_symbol_5(u, 0u));
|
||||
tint_symbol_1(s, 128u, tint_symbol_6(u, 256u));
|
||||
tint_symbol_3(s, 388u, tint_symbol_8(u, 260u));
|
||||
s_store(0u, u_load(0u));
|
||||
s_store_1(128u, u_load_1(256u));
|
||||
s_store_3(388u, u_load_3(260u));
|
||||
uint ubo_load_3 = u[0].z;
|
||||
s.Store<vector<float16_t, 2> >(132u, vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))).yx);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001BBE330BB00(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -15,29 +15,29 @@ struct tint_symbol_1 {
|
||||
uint local_invocation_index : SV_GroupIndex;
|
||||
};
|
||||
|
||||
matrix<float16_t, 3, 2> tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 2> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
|
||||
uint ubo_load = u[scalar_offset / 4][scalar_offset % 4];
|
||||
const uint scalar_offset_1 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
uint ubo_load_1 = u[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
const uint scalar_offset_2 = ((offset + 8u)) / 4;
|
||||
uint ubo_load_2 = buffer[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
uint ubo_load_2 = u[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
return matrix<float16_t, 3, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))));
|
||||
}
|
||||
|
||||
S tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_3 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_4 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_8 = {asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4]), tint_symbol_5(buffer, (offset + 4u)), asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol_8;
|
||||
const S tint_symbol_3 = {asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4]), u_load_3((offset + 4u)), asint(u[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol_3;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_2_ret[4];
|
||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_3(buffer, (offset + (i_1 * 128u)));
|
||||
arr[i_1] = u_load_1((offset + (i_1 * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -47,14 +47,14 @@ void f_inner(uint local_invocation_index) {
|
||||
{
|
||||
for(uint idx = local_invocation_index; (idx < 4u); idx = (idx + 1u)) {
|
||||
const uint i = idx;
|
||||
const S tint_symbol_7 = (S)0;
|
||||
w[i] = tint_symbol_7;
|
||||
const S tint_symbol_2 = (S)0;
|
||||
w[i] = tint_symbol_2;
|
||||
}
|
||||
}
|
||||
GroupMemoryBarrierWithGroupSync();
|
||||
w = tint_symbol_2(u, 0u);
|
||||
w[1] = tint_symbol_3(u, 256u);
|
||||
w[3].m = tint_symbol_5(u, 260u);
|
||||
w = u_load(0u);
|
||||
w[1] = u_load_1(256u);
|
||||
w[3].m = u_load_3(260u);
|
||||
uint ubo_load_3 = u[0].z;
|
||||
w[1].m[0] = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))).yx;
|
||||
}
|
||||
@@ -64,6 +64,3 @@ void f(tint_symbol_1 tint_symbol) {
|
||||
f_inner(tint_symbol.local_invocation_index);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000194753403B0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -17,52 +17,52 @@ int i() {
|
||||
return counter;
|
||||
}
|
||||
|
||||
matrix<float16_t, 3, 3> tint_symbol_8(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 3, 3> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = a[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
return matrix<float16_t, 3, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]));
|
||||
}
|
||||
|
||||
Inner tint_symbol_7(uint4 buffer[64], uint offset) {
|
||||
const Inner tint_symbol_11 = {tint_symbol_8(buffer, (offset + 0u))};
|
||||
return tint_symbol_11;
|
||||
Inner a_load_3(uint offset) {
|
||||
const Inner tint_symbol_4 = {a_load_4((offset + 0u))};
|
||||
return tint_symbol_4;
|
||||
}
|
||||
|
||||
typedef Inner tint_symbol_6_ret[4];
|
||||
tint_symbol_6_ret tint_symbol_6(uint4 buffer[64], uint offset) {
|
||||
typedef Inner a_load_2_ret[4];
|
||||
a_load_2_ret a_load_2(uint offset) {
|
||||
Inner arr[4] = (Inner[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_7(buffer, (offset + (i_1 * 64u)));
|
||||
arr[i_1] = a_load_3((offset + (i_1 * 64u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
Outer tint_symbol_5(uint4 buffer[64], uint offset) {
|
||||
const Outer tint_symbol_12 = {tint_symbol_6(buffer, (offset + 0u))};
|
||||
return tint_symbol_12;
|
||||
Outer a_load_1(uint offset) {
|
||||
const Outer tint_symbol_5 = {a_load_2((offset + 0u))};
|
||||
return tint_symbol_5;
|
||||
}
|
||||
|
||||
typedef Outer tint_symbol_4_ret[4];
|
||||
tint_symbol_4_ret tint_symbol_4(uint4 buffer[64], uint offset) {
|
||||
typedef Outer a_load_ret[4];
|
||||
a_load_ret a_load(uint offset) {
|
||||
Outer arr_1[4] = (Outer[4])0;
|
||||
{
|
||||
for(uint i_2 = 0u; (i_2 < 4u); i_2 = (i_2 + 1u)) {
|
||||
arr_1[i_2] = tint_symbol_5(buffer, (offset + (i_2 * 256u)));
|
||||
arr_1[i_2] = a_load_1((offset + (i_2 * 256u)));
|
||||
}
|
||||
}
|
||||
return arr_1;
|
||||
@@ -73,11 +73,11 @@ void f() {
|
||||
const int p_a_i_save = i();
|
||||
const int p_a_i_a_i_save = i();
|
||||
const int p_a_i_a_i_m_i_save = i();
|
||||
const Outer l_a[4] = tint_symbol_4(a, 0u);
|
||||
const Outer l_a_i = tint_symbol_5(a, (256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a[4] = tint_symbol_6(a, (256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a_i = tint_symbol_7(a, ((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const matrix<float16_t, 3, 3> l_a_i_a_i_m = tint_symbol_8(a, ((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const Outer l_a[4] = a_load(0u);
|
||||
const Outer l_a_i = a_load_1((256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a[4] = a_load_2((256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a_i = a_load_3(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const matrix<float16_t, 3, 3> l_a_i_a_i_m = a_load_4(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const uint scalar_offset_3 = ((((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))) + (8u * uint(p_a_i_a_i_m_i_save)))) / 4;
|
||||
uint4 ubo_load_7 = a[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
@@ -93,6 +93,3 @@ void f() {
|
||||
const float16_t l_a_i_a_i_m_i_i = float16_t(f16tof32(((a[scalar_offset_index / 4][scalar_offset_index % 4] >> (scalar_offset_bytes % 4 == 0 ? 0 : 16)) & 0xFFFF)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001CC9AE84850(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,52 +11,52 @@ cbuffer cbuffer_a : register(b0, space0) {
|
||||
uint4 a[64];
|
||||
};
|
||||
|
||||
matrix<float16_t, 3, 3> tint_symbol_4(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 3, 3> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = a[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
return matrix<float16_t, 3, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]));
|
||||
}
|
||||
|
||||
Inner tint_symbol_3(uint4 buffer[64], uint offset) {
|
||||
const Inner tint_symbol_7 = {tint_symbol_4(buffer, (offset + 0u))};
|
||||
return tint_symbol_7;
|
||||
Inner a_load_3(uint offset) {
|
||||
const Inner tint_symbol = {a_load_4((offset + 0u))};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef Inner tint_symbol_2_ret[4];
|
||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[64], uint offset) {
|
||||
typedef Inner a_load_2_ret[4];
|
||||
a_load_2_ret a_load_2(uint offset) {
|
||||
Inner arr[4] = (Inner[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_3(buffer, (offset + (i * 64u)));
|
||||
arr[i] = a_load_3((offset + (i * 64u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
Outer tint_symbol_1(uint4 buffer[64], uint offset) {
|
||||
const Outer tint_symbol_8 = {tint_symbol_2(buffer, (offset + 0u))};
|
||||
return tint_symbol_8;
|
||||
Outer a_load_1(uint offset) {
|
||||
const Outer tint_symbol_1 = {a_load_2((offset + 0u))};
|
||||
return tint_symbol_1;
|
||||
}
|
||||
|
||||
typedef Outer tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
||||
typedef Outer a_load_ret[4];
|
||||
a_load_ret a_load(uint offset) {
|
||||
Outer arr_1[4] = (Outer[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr_1[i_1] = tint_symbol_1(buffer, (offset + (i_1 * 256u)));
|
||||
arr_1[i_1] = a_load_1((offset + (i_1 * 256u)));
|
||||
}
|
||||
}
|
||||
return arr_1;
|
||||
@@ -64,11 +64,11 @@ tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const Outer l_a[4] = tint_symbol(a, 0u);
|
||||
const Outer l_a_3 = tint_symbol_1(a, 768u);
|
||||
const Inner l_a_3_a[4] = tint_symbol_2(a, 768u);
|
||||
const Inner l_a_3_a_2 = tint_symbol_3(a, 896u);
|
||||
const matrix<float16_t, 3, 3> l_a_3_a_2_m = tint_symbol_4(a, 896u);
|
||||
const Outer l_a[4] = a_load(0u);
|
||||
const Outer l_a_3 = a_load_1(768u);
|
||||
const Inner l_a_3_a[4] = a_load_2(768u);
|
||||
const Inner l_a_3_a_2 = a_load_3(896u);
|
||||
const matrix<float16_t, 3, 3> l_a_3_a_2_m = a_load_4(896u);
|
||||
uint2 ubo_load_6 = a[56].zw;
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
@@ -76,6 +76,3 @@ void f() {
|
||||
const float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].z) & 0xFFFF)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000021CC01A0970(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -4,19 +4,19 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
uint4 u[32];
|
||||
};
|
||||
|
||||
matrix<float16_t, 3, 3> tint_symbol(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 3> u_load(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
@@ -25,7 +25,7 @@ matrix<float16_t, 3, 3> tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const matrix<float16_t, 3, 3> t = transpose(tint_symbol(u, 264u));
|
||||
const matrix<float16_t, 3, 3> t = transpose(u_load(264u));
|
||||
uint2 ubo_load_6 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
@@ -36,6 +36,3 @@ void f() {
|
||||
const float16_t a = abs(vector<float16_t, 3>(ubo_load_7_xz[0], ubo_load_7_y, ubo_load_7_xz[1]).zxy.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001BFA9E0F690(5,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -25,38 +25,38 @@ void d(vector<float16_t, 3> v) {
|
||||
void e(float16_t f_1) {
|
||||
}
|
||||
|
||||
matrix<float16_t, 3, 3> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 3> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
return matrix<float16_t, 3, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_3 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_4 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4]), tint_symbol_3(buffer, (offset + 8u)), asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 128u)));
|
||||
arr[i] = u_load_1((offset + (i * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -64,9 +64,9 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
a(tint_symbol(u, 0u));
|
||||
b(tint_symbol_1(u, 256u));
|
||||
c(tint_symbol_3(u, 264u));
|
||||
a(u_load(0u));
|
||||
b(u_load_1(256u));
|
||||
c(u_load_3(264u));
|
||||
uint2 ubo_load_6 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
@@ -77,6 +77,3 @@ void f() {
|
||||
e(vector<float16_t, 3>(ubo_load_7_xz[0], ubo_load_7_y, ubo_load_7_xz[1]).zxy.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001A1CC720100(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,38 +11,38 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
static S p[4] = (S[4])0;
|
||||
|
||||
matrix<float16_t, 3, 3> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 3> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
return matrix<float16_t, 3, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_3 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_4 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4]), tint_symbol_3(buffer, (offset + 8u)), asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 128u)));
|
||||
arr[i] = u_load_1((offset + (i * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -50,15 +50,12 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
p = tint_symbol(u, 0u);
|
||||
p[1] = tint_symbol_1(u, 256u);
|
||||
p[3].m = tint_symbol_3(u, 264u);
|
||||
p = u_load(0u);
|
||||
p[1] = u_load_1(256u);
|
||||
p[3].m = u_load_3(264u);
|
||||
uint2 ubo_load_6 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
p[1].m[0] = vector<float16_t, 3>(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]).zxy;
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000025A3E276990(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,59 +11,59 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
RWByteAddressBuffer s : register(u1, space0);
|
||||
|
||||
void tint_symbol_3(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 3, 3> value) {
|
||||
buffer.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
||||
buffer.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
||||
buffer.Store<vector<float16_t, 3> >((offset + 16u), value[2u]);
|
||||
void s_store_3(uint offset, matrix<float16_t, 3, 3> value) {
|
||||
s.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
||||
s.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
||||
s.Store<vector<float16_t, 3> >((offset + 16u), value[2u]);
|
||||
}
|
||||
|
||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, S value) {
|
||||
buffer.Store((offset + 0u), asuint(value.before));
|
||||
tint_symbol_3(buffer, (offset + 8u), value.m);
|
||||
buffer.Store((offset + 64u), asuint(value.after));
|
||||
void s_store_1(uint offset, S value) {
|
||||
s.Store((offset + 0u), asuint(value.before));
|
||||
s_store_3((offset + 8u), value.m);
|
||||
s.Store((offset + 64u), asuint(value.after));
|
||||
}
|
||||
|
||||
void tint_symbol(RWByteAddressBuffer buffer, uint offset, S value[4]) {
|
||||
S array[4] = value;
|
||||
void s_store(uint offset, S value[4]) {
|
||||
S array_1[4] = value;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
tint_symbol_1(buffer, (offset + (i * 128u)), array[i]);
|
||||
s_store_1((offset + (i * 128u)), array_1[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
matrix<float16_t, 3, 3> tint_symbol_8(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 3> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
return matrix<float16_t, 3, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_6(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_3 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_4 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_10 = {asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4]), tint_symbol_8(buffer, (offset + 8u)), asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol_10;
|
||||
const S tint_symbol = {asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_5_ret[4];
|
||||
tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_6(buffer, (offset + (i_1 * 128u)));
|
||||
arr[i_1] = u_load_1((offset + (i_1 * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -71,15 +71,12 @@ tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
tint_symbol(s, 0u, tint_symbol_5(u, 0u));
|
||||
tint_symbol_1(s, 128u, tint_symbol_6(u, 256u));
|
||||
tint_symbol_3(s, 392u, tint_symbol_8(u, 264u));
|
||||
s_store(0u, u_load(0u));
|
||||
s_store_1(128u, u_load_1(256u));
|
||||
s_store_3(392u, u_load_3(264u));
|
||||
uint2 ubo_load_6 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
s.Store<vector<float16_t, 3> >(136u, vector<float16_t, 3>(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]).zxy);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001D5F9C4A510(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -15,38 +15,38 @@ struct tint_symbol_1 {
|
||||
uint local_invocation_index : SV_GroupIndex;
|
||||
};
|
||||
|
||||
matrix<float16_t, 3, 3> tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 3> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
return matrix<float16_t, 3, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_3 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_4 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_8 = {asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4]), tint_symbol_5(buffer, (offset + 8u)), asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol_8;
|
||||
const S tint_symbol_3 = {asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol_3;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_2_ret[4];
|
||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_3(buffer, (offset + (i_1 * 128u)));
|
||||
arr[i_1] = u_load_1((offset + (i_1 * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -56,14 +56,14 @@ void f_inner(uint local_invocation_index) {
|
||||
{
|
||||
for(uint idx = local_invocation_index; (idx < 4u); idx = (idx + 1u)) {
|
||||
const uint i = idx;
|
||||
const S tint_symbol_7 = (S)0;
|
||||
w[i] = tint_symbol_7;
|
||||
const S tint_symbol_2 = (S)0;
|
||||
w[i] = tint_symbol_2;
|
||||
}
|
||||
}
|
||||
GroupMemoryBarrierWithGroupSync();
|
||||
w = tint_symbol_2(u, 0u);
|
||||
w[1] = tint_symbol_3(u, 256u);
|
||||
w[3].m = tint_symbol_5(u, 264u);
|
||||
w = u_load(0u);
|
||||
w[1] = u_load_1(256u);
|
||||
w[3].m = u_load_3(264u);
|
||||
uint2 ubo_load_6 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
@@ -75,6 +75,3 @@ void f(tint_symbol_1 tint_symbol) {
|
||||
f_inner(tint_symbol.local_invocation_index);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000021282D17B60(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -17,52 +17,52 @@ int i() {
|
||||
return counter;
|
||||
}
|
||||
|
||||
matrix<float16_t, 3, 4> tint_symbol_8(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 3, 4> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = a[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
return matrix<float16_t, 3, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]));
|
||||
}
|
||||
|
||||
Inner tint_symbol_7(uint4 buffer[64], uint offset) {
|
||||
const Inner tint_symbol_11 = {tint_symbol_8(buffer, (offset + 0u))};
|
||||
return tint_symbol_11;
|
||||
Inner a_load_3(uint offset) {
|
||||
const Inner tint_symbol_4 = {a_load_4((offset + 0u))};
|
||||
return tint_symbol_4;
|
||||
}
|
||||
|
||||
typedef Inner tint_symbol_6_ret[4];
|
||||
tint_symbol_6_ret tint_symbol_6(uint4 buffer[64], uint offset) {
|
||||
typedef Inner a_load_2_ret[4];
|
||||
a_load_2_ret a_load_2(uint offset) {
|
||||
Inner arr[4] = (Inner[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_7(buffer, (offset + (i_1 * 64u)));
|
||||
arr[i_1] = a_load_3((offset + (i_1 * 64u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
Outer tint_symbol_5(uint4 buffer[64], uint offset) {
|
||||
const Outer tint_symbol_12 = {tint_symbol_6(buffer, (offset + 0u))};
|
||||
return tint_symbol_12;
|
||||
Outer a_load_1(uint offset) {
|
||||
const Outer tint_symbol_5 = {a_load_2((offset + 0u))};
|
||||
return tint_symbol_5;
|
||||
}
|
||||
|
||||
typedef Outer tint_symbol_4_ret[4];
|
||||
tint_symbol_4_ret tint_symbol_4(uint4 buffer[64], uint offset) {
|
||||
typedef Outer a_load_ret[4];
|
||||
a_load_ret a_load(uint offset) {
|
||||
Outer arr_1[4] = (Outer[4])0;
|
||||
{
|
||||
for(uint i_2 = 0u; (i_2 < 4u); i_2 = (i_2 + 1u)) {
|
||||
arr_1[i_2] = tint_symbol_5(buffer, (offset + (i_2 * 256u)));
|
||||
arr_1[i_2] = a_load_1((offset + (i_2 * 256u)));
|
||||
}
|
||||
}
|
||||
return arr_1;
|
||||
@@ -73,11 +73,11 @@ void f() {
|
||||
const int p_a_i_save = i();
|
||||
const int p_a_i_a_i_save = i();
|
||||
const int p_a_i_a_i_m_i_save = i();
|
||||
const Outer l_a[4] = tint_symbol_4(a, 0u);
|
||||
const Outer l_a_i = tint_symbol_5(a, (256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a[4] = tint_symbol_6(a, (256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a_i = tint_symbol_7(a, ((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const matrix<float16_t, 3, 4> l_a_i_a_i_m = tint_symbol_8(a, ((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const Outer l_a[4] = a_load(0u);
|
||||
const Outer l_a_i = a_load_1((256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a[4] = a_load_2((256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a_i = a_load_3(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const matrix<float16_t, 3, 4> l_a_i_a_i_m = a_load_4(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const uint scalar_offset_3 = ((((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))) + (8u * uint(p_a_i_a_i_m_i_save)))) / 4;
|
||||
uint4 ubo_load_7 = a[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
@@ -93,6 +93,3 @@ void f() {
|
||||
const float16_t l_a_i_a_i_m_i_i = float16_t(f16tof32(((a[scalar_offset_index / 4][scalar_offset_index % 4] >> (scalar_offset_bytes % 4 == 0 ? 0 : 16)) & 0xFFFF)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001C15A92C5C0(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,52 +11,52 @@ cbuffer cbuffer_a : register(b0, space0) {
|
||||
uint4 a[64];
|
||||
};
|
||||
|
||||
matrix<float16_t, 3, 4> tint_symbol_4(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 3, 4> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = a[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
return matrix<float16_t, 3, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]));
|
||||
}
|
||||
|
||||
Inner tint_symbol_3(uint4 buffer[64], uint offset) {
|
||||
const Inner tint_symbol_7 = {tint_symbol_4(buffer, (offset + 0u))};
|
||||
return tint_symbol_7;
|
||||
Inner a_load_3(uint offset) {
|
||||
const Inner tint_symbol = {a_load_4((offset + 0u))};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef Inner tint_symbol_2_ret[4];
|
||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[64], uint offset) {
|
||||
typedef Inner a_load_2_ret[4];
|
||||
a_load_2_ret a_load_2(uint offset) {
|
||||
Inner arr[4] = (Inner[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_3(buffer, (offset + (i * 64u)));
|
||||
arr[i] = a_load_3((offset + (i * 64u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
Outer tint_symbol_1(uint4 buffer[64], uint offset) {
|
||||
const Outer tint_symbol_8 = {tint_symbol_2(buffer, (offset + 0u))};
|
||||
return tint_symbol_8;
|
||||
Outer a_load_1(uint offset) {
|
||||
const Outer tint_symbol_1 = {a_load_2((offset + 0u))};
|
||||
return tint_symbol_1;
|
||||
}
|
||||
|
||||
typedef Outer tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
||||
typedef Outer a_load_ret[4];
|
||||
a_load_ret a_load(uint offset) {
|
||||
Outer arr_1[4] = (Outer[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr_1[i_1] = tint_symbol_1(buffer, (offset + (i_1 * 256u)));
|
||||
arr_1[i_1] = a_load_1((offset + (i_1 * 256u)));
|
||||
}
|
||||
}
|
||||
return arr_1;
|
||||
@@ -64,11 +64,11 @@ tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const Outer l_a[4] = tint_symbol(a, 0u);
|
||||
const Outer l_a_3 = tint_symbol_1(a, 768u);
|
||||
const Inner l_a_3_a[4] = tint_symbol_2(a, 768u);
|
||||
const Inner l_a_3_a_2 = tint_symbol_3(a, 896u);
|
||||
const matrix<float16_t, 3, 4> l_a_3_a_2_m = tint_symbol_4(a, 896u);
|
||||
const Outer l_a[4] = a_load(0u);
|
||||
const Outer l_a_3 = a_load_1(768u);
|
||||
const Inner l_a_3_a[4] = a_load_2(768u);
|
||||
const Inner l_a_3_a_2 = a_load_3(896u);
|
||||
const matrix<float16_t, 3, 4> l_a_3_a_2_m = a_load_4(896u);
|
||||
uint2 ubo_load_6 = a[56].zw;
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
@@ -76,6 +76,3 @@ void f() {
|
||||
const float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].z) & 0xFFFF)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002CC6184FF70(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -4,19 +4,19 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
uint4 u[32];
|
||||
};
|
||||
|
||||
matrix<float16_t, 3, 4> tint_symbol(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 4> u_load(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
@@ -25,7 +25,7 @@ matrix<float16_t, 3, 4> tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const matrix<float16_t, 4, 3> t = transpose(tint_symbol(u, 264u));
|
||||
const matrix<float16_t, 4, 3> t = transpose(u_load(264u));
|
||||
uint2 ubo_load_6 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
@@ -36,6 +36,3 @@ void f() {
|
||||
const float16_t a = abs(vector<float16_t, 4>(ubo_load_7_xz[0], ubo_load_7_yw[0], ubo_load_7_xz[1], ubo_load_7_yw[1]).ywxz.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002683960F9A0(5,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -25,38 +25,38 @@ void d(vector<float16_t, 4> v) {
|
||||
void e(float16_t f_1) {
|
||||
}
|
||||
|
||||
matrix<float16_t, 3, 4> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 4> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
return matrix<float16_t, 3, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_3 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_4 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4]), tint_symbol_3(buffer, (offset + 8u)), asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 128u)));
|
||||
arr[i] = u_load_1((offset + (i * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -64,9 +64,9 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
a(tint_symbol(u, 0u));
|
||||
b(tint_symbol_1(u, 256u));
|
||||
c(tint_symbol_3(u, 264u));
|
||||
a(u_load(0u));
|
||||
b(u_load_1(256u));
|
||||
c(u_load_3(264u));
|
||||
uint2 ubo_load_6 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
@@ -77,6 +77,3 @@ void f() {
|
||||
e(vector<float16_t, 4>(ubo_load_7_xz[0], ubo_load_7_yw[0], ubo_load_7_xz[1], ubo_load_7_yw[1]).ywxz.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000278FC792580(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,38 +11,38 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
static S p[4] = (S[4])0;
|
||||
|
||||
matrix<float16_t, 3, 4> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 4> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
return matrix<float16_t, 3, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_3 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_4 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4]), tint_symbol_3(buffer, (offset + 8u)), asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 128u)));
|
||||
arr[i] = u_load_1((offset + (i * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -50,15 +50,12 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
p = tint_symbol(u, 0u);
|
||||
p[1] = tint_symbol_1(u, 256u);
|
||||
p[3].m = tint_symbol_3(u, 264u);
|
||||
p = u_load(0u);
|
||||
p[1] = u_load_1(256u);
|
||||
p[3].m = u_load_3(264u);
|
||||
uint2 ubo_load_6 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
p[1].m[0] = vector<float16_t, 4>(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]).ywxz;
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002605021E560(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,59 +11,59 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
RWByteAddressBuffer s : register(u1, space0);
|
||||
|
||||
void tint_symbol_3(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 3, 4> value) {
|
||||
buffer.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||
buffer.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||
buffer.Store<vector<float16_t, 4> >((offset + 16u), value[2u]);
|
||||
void s_store_3(uint offset, matrix<float16_t, 3, 4> value) {
|
||||
s.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||
s.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||
s.Store<vector<float16_t, 4> >((offset + 16u), value[2u]);
|
||||
}
|
||||
|
||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, S value) {
|
||||
buffer.Store((offset + 0u), asuint(value.before));
|
||||
tint_symbol_3(buffer, (offset + 8u), value.m);
|
||||
buffer.Store((offset + 64u), asuint(value.after));
|
||||
void s_store_1(uint offset, S value) {
|
||||
s.Store((offset + 0u), asuint(value.before));
|
||||
s_store_3((offset + 8u), value.m);
|
||||
s.Store((offset + 64u), asuint(value.after));
|
||||
}
|
||||
|
||||
void tint_symbol(RWByteAddressBuffer buffer, uint offset, S value[4]) {
|
||||
S array[4] = value;
|
||||
void s_store(uint offset, S value[4]) {
|
||||
S array_1[4] = value;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
tint_symbol_1(buffer, (offset + (i * 128u)), array[i]);
|
||||
s_store_1((offset + (i * 128u)), array_1[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
matrix<float16_t, 3, 4> tint_symbol_8(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 4> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
return matrix<float16_t, 3, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_6(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_3 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_4 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_10 = {asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4]), tint_symbol_8(buffer, (offset + 8u)), asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol_10;
|
||||
const S tint_symbol = {asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_5_ret[4];
|
||||
tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_6(buffer, (offset + (i_1 * 128u)));
|
||||
arr[i_1] = u_load_1((offset + (i_1 * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -71,15 +71,12 @@ tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
tint_symbol(s, 0u, tint_symbol_5(u, 0u));
|
||||
tint_symbol_1(s, 128u, tint_symbol_6(u, 256u));
|
||||
tint_symbol_3(s, 392u, tint_symbol_8(u, 264u));
|
||||
s_store(0u, u_load(0u));
|
||||
s_store_1(128u, u_load_1(256u));
|
||||
s_store_3(392u, u_load_3(264u));
|
||||
uint2 ubo_load_6 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
s.Store<vector<float16_t, 4> >(136u, vector<float16_t, 4>(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]).ywxz);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001FE54B10170(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -15,38 +15,38 @@ struct tint_symbol_1 {
|
||||
uint local_invocation_index : SV_GroupIndex;
|
||||
};
|
||||
|
||||
matrix<float16_t, 3, 4> tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 4> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
return matrix<float16_t, 3, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_3 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_4 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_8 = {asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4]), tint_symbol_5(buffer, (offset + 8u)), asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol_8;
|
||||
const S tint_symbol_3 = {asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol_3;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_2_ret[4];
|
||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_3(buffer, (offset + (i_1 * 128u)));
|
||||
arr[i_1] = u_load_1((offset + (i_1 * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -56,14 +56,14 @@ void f_inner(uint local_invocation_index) {
|
||||
{
|
||||
for(uint idx = local_invocation_index; (idx < 4u); idx = (idx + 1u)) {
|
||||
const uint i = idx;
|
||||
const S tint_symbol_7 = (S)0;
|
||||
w[i] = tint_symbol_7;
|
||||
const S tint_symbol_2 = (S)0;
|
||||
w[i] = tint_symbol_2;
|
||||
}
|
||||
}
|
||||
GroupMemoryBarrierWithGroupSync();
|
||||
w = tint_symbol_2(u, 0u);
|
||||
w[1] = tint_symbol_3(u, 256u);
|
||||
w[3].m = tint_symbol_5(u, 264u);
|
||||
w = u_load(0u);
|
||||
w[1] = u_load_1(256u);
|
||||
w[3].m = u_load_3(264u);
|
||||
uint2 ubo_load_6 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
@@ -75,6 +75,3 @@ void f(tint_symbol_1 tint_symbol) {
|
||||
f_inner(tint_symbol.local_invocation_index);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001FEBFD6AE90(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -17,45 +17,45 @@ int i() {
|
||||
return counter;
|
||||
}
|
||||
|
||||
matrix<float16_t, 4, 2> tint_symbol_8(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 4, 2> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
|
||||
uint ubo_load = a[scalar_offset / 4][scalar_offset % 4];
|
||||
const uint scalar_offset_1 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
uint ubo_load_1 = a[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
const uint scalar_offset_2 = ((offset + 8u)) / 4;
|
||||
uint ubo_load_2 = buffer[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
uint ubo_load_2 = a[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
const uint scalar_offset_3 = ((offset + 12u)) / 4;
|
||||
uint ubo_load_3 = buffer[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
uint ubo_load_3 = a[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
return matrix<float16_t, 4, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))));
|
||||
}
|
||||
|
||||
Inner tint_symbol_7(uint4 buffer[64], uint offset) {
|
||||
const Inner tint_symbol_11 = {tint_symbol_8(buffer, (offset + 0u))};
|
||||
return tint_symbol_11;
|
||||
Inner a_load_3(uint offset) {
|
||||
const Inner tint_symbol_4 = {a_load_4((offset + 0u))};
|
||||
return tint_symbol_4;
|
||||
}
|
||||
|
||||
typedef Inner tint_symbol_6_ret[4];
|
||||
tint_symbol_6_ret tint_symbol_6(uint4 buffer[64], uint offset) {
|
||||
typedef Inner a_load_2_ret[4];
|
||||
a_load_2_ret a_load_2(uint offset) {
|
||||
Inner arr[4] = (Inner[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_7(buffer, (offset + (i_1 * 64u)));
|
||||
arr[i_1] = a_load_3((offset + (i_1 * 64u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
Outer tint_symbol_5(uint4 buffer[64], uint offset) {
|
||||
const Outer tint_symbol_12 = {tint_symbol_6(buffer, (offset + 0u))};
|
||||
return tint_symbol_12;
|
||||
Outer a_load_1(uint offset) {
|
||||
const Outer tint_symbol_5 = {a_load_2((offset + 0u))};
|
||||
return tint_symbol_5;
|
||||
}
|
||||
|
||||
typedef Outer tint_symbol_4_ret[4];
|
||||
tint_symbol_4_ret tint_symbol_4(uint4 buffer[64], uint offset) {
|
||||
typedef Outer a_load_ret[4];
|
||||
a_load_ret a_load(uint offset) {
|
||||
Outer arr_1[4] = (Outer[4])0;
|
||||
{
|
||||
for(uint i_2 = 0u; (i_2 < 4u); i_2 = (i_2 + 1u)) {
|
||||
arr_1[i_2] = tint_symbol_5(buffer, (offset + (i_2 * 256u)));
|
||||
arr_1[i_2] = a_load_1((offset + (i_2 * 256u)));
|
||||
}
|
||||
}
|
||||
return arr_1;
|
||||
@@ -66,11 +66,11 @@ void f() {
|
||||
const int p_a_i_save = i();
|
||||
const int p_a_i_a_i_save = i();
|
||||
const int p_a_i_a_i_m_i_save = i();
|
||||
const Outer l_a[4] = tint_symbol_4(a, 0u);
|
||||
const Outer l_a_i = tint_symbol_5(a, (256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a[4] = tint_symbol_6(a, (256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a_i = tint_symbol_7(a, ((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const matrix<float16_t, 4, 2> l_a_i_a_i_m = tint_symbol_8(a, ((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const Outer l_a[4] = a_load(0u);
|
||||
const Outer l_a_i = a_load_1((256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a[4] = a_load_2((256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a_i = a_load_3(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const matrix<float16_t, 4, 2> l_a_i_a_i_m = a_load_4(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const uint scalar_offset_4 = ((((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))) + (4u * uint(p_a_i_a_i_m_i_save)))) / 4;
|
||||
uint ubo_load_4 = a[scalar_offset_4 / 4][scalar_offset_4 % 4];
|
||||
const vector<float16_t, 2> l_a_i_a_i_m_i = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16)));
|
||||
@@ -83,6 +83,3 @@ void f() {
|
||||
const float16_t l_a_i_a_i_m_i_i = float16_t(f16tof32(((a[scalar_offset_index / 4][scalar_offset_index % 4] >> (scalar_offset_bytes % 4 == 0 ? 0 : 16)) & 0xFFFF)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000216C74B2530(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,45 +11,45 @@ cbuffer cbuffer_a : register(b0, space0) {
|
||||
uint4 a[64];
|
||||
};
|
||||
|
||||
matrix<float16_t, 4, 2> tint_symbol_4(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 4, 2> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
|
||||
uint ubo_load = a[scalar_offset / 4][scalar_offset % 4];
|
||||
const uint scalar_offset_1 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
uint ubo_load_1 = a[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
const uint scalar_offset_2 = ((offset + 8u)) / 4;
|
||||
uint ubo_load_2 = buffer[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
uint ubo_load_2 = a[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
const uint scalar_offset_3 = ((offset + 12u)) / 4;
|
||||
uint ubo_load_3 = buffer[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
uint ubo_load_3 = a[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
return matrix<float16_t, 4, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))));
|
||||
}
|
||||
|
||||
Inner tint_symbol_3(uint4 buffer[64], uint offset) {
|
||||
const Inner tint_symbol_7 = {tint_symbol_4(buffer, (offset + 0u))};
|
||||
return tint_symbol_7;
|
||||
Inner a_load_3(uint offset) {
|
||||
const Inner tint_symbol = {a_load_4((offset + 0u))};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef Inner tint_symbol_2_ret[4];
|
||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[64], uint offset) {
|
||||
typedef Inner a_load_2_ret[4];
|
||||
a_load_2_ret a_load_2(uint offset) {
|
||||
Inner arr[4] = (Inner[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_3(buffer, (offset + (i * 64u)));
|
||||
arr[i] = a_load_3((offset + (i * 64u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
Outer tint_symbol_1(uint4 buffer[64], uint offset) {
|
||||
const Outer tint_symbol_8 = {tint_symbol_2(buffer, (offset + 0u))};
|
||||
return tint_symbol_8;
|
||||
Outer a_load_1(uint offset) {
|
||||
const Outer tint_symbol_1 = {a_load_2((offset + 0u))};
|
||||
return tint_symbol_1;
|
||||
}
|
||||
|
||||
typedef Outer tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
||||
typedef Outer a_load_ret[4];
|
||||
a_load_ret a_load(uint offset) {
|
||||
Outer arr_1[4] = (Outer[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr_1[i_1] = tint_symbol_1(buffer, (offset + (i_1 * 256u)));
|
||||
arr_1[i_1] = a_load_1((offset + (i_1 * 256u)));
|
||||
}
|
||||
}
|
||||
return arr_1;
|
||||
@@ -57,16 +57,13 @@ tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const Outer l_a[4] = tint_symbol(a, 0u);
|
||||
const Outer l_a_3 = tint_symbol_1(a, 768u);
|
||||
const Inner l_a_3_a[4] = tint_symbol_2(a, 768u);
|
||||
const Inner l_a_3_a_2 = tint_symbol_3(a, 896u);
|
||||
const matrix<float16_t, 4, 2> l_a_3_a_2_m = tint_symbol_4(a, 896u);
|
||||
const Outer l_a[4] = a_load(0u);
|
||||
const Outer l_a_3 = a_load_1(768u);
|
||||
const Inner l_a_3_a[4] = a_load_2(768u);
|
||||
const Inner l_a_3_a_2 = a_load_3(896u);
|
||||
const matrix<float16_t, 4, 2> l_a_3_a_2_m = a_load_4(896u);
|
||||
uint ubo_load_4 = a[56].y;
|
||||
const vector<float16_t, 2> l_a_3_a_2_m_1 = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16)));
|
||||
const float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].y) & 0xFFFF)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000026E60B9E9C0(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -4,27 +4,24 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
uint4 u[32];
|
||||
};
|
||||
|
||||
matrix<float16_t, 4, 2> tint_symbol(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 4, 2> u_load(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
|
||||
uint ubo_load = u[scalar_offset / 4][scalar_offset % 4];
|
||||
const uint scalar_offset_1 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
uint ubo_load_1 = u[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
const uint scalar_offset_2 = ((offset + 8u)) / 4;
|
||||
uint ubo_load_2 = buffer[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
uint ubo_load_2 = u[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
const uint scalar_offset_3 = ((offset + 12u)) / 4;
|
||||
uint ubo_load_3 = buffer[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
uint ubo_load_3 = u[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
return matrix<float16_t, 4, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))));
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const matrix<float16_t, 2, 4> t = transpose(tint_symbol(u, 260u));
|
||||
const matrix<float16_t, 2, 4> t = transpose(u_load(260u));
|
||||
uint ubo_load_4 = u[0].z;
|
||||
const float16_t l = length(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx);
|
||||
uint ubo_load_5 = u[0].z;
|
||||
const float16_t a = abs(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_5 & 0xFFFF)), float16_t(f16tof32(ubo_load_5 >> 16))).yx.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001CC7C77CFC0(5,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -25,31 +25,31 @@ void d(vector<float16_t, 2> v) {
|
||||
void e(float16_t f_1) {
|
||||
}
|
||||
|
||||
matrix<float16_t, 4, 2> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 4, 2> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
|
||||
uint ubo_load = u[scalar_offset / 4][scalar_offset % 4];
|
||||
const uint scalar_offset_1 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
uint ubo_load_1 = u[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
const uint scalar_offset_2 = ((offset + 8u)) / 4;
|
||||
uint ubo_load_2 = buffer[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
uint ubo_load_2 = u[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
const uint scalar_offset_3 = ((offset + 12u)) / 4;
|
||||
uint ubo_load_3 = buffer[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
uint ubo_load_3 = u[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
return matrix<float16_t, 4, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_4 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_5 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4]), tint_symbol_3(buffer, (offset + 4u)), asint(buffer[scalar_offset_5 / 4][scalar_offset_5 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_4 / 4][scalar_offset_4 % 4]), u_load_3((offset + 4u)), asint(u[scalar_offset_5 / 4][scalar_offset_5 % 4])};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 128u)));
|
||||
arr[i] = u_load_1((offset + (i * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -57,15 +57,12 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
a(tint_symbol(u, 0u));
|
||||
b(tint_symbol_1(u, 256u));
|
||||
c(tint_symbol_3(u, 260u));
|
||||
a(u_load(0u));
|
||||
b(u_load_1(256u));
|
||||
c(u_load_3(260u));
|
||||
uint ubo_load_4 = u[0].z;
|
||||
d(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx);
|
||||
uint ubo_load_5 = u[0].z;
|
||||
e(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_5 & 0xFFFF)), float16_t(f16tof32(ubo_load_5 >> 16))).yx.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001CA88A4FDA0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,31 +11,31 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
static S p[4] = (S[4])0;
|
||||
|
||||
matrix<float16_t, 4, 2> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 4, 2> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
|
||||
uint ubo_load = u[scalar_offset / 4][scalar_offset % 4];
|
||||
const uint scalar_offset_1 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
uint ubo_load_1 = u[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
const uint scalar_offset_2 = ((offset + 8u)) / 4;
|
||||
uint ubo_load_2 = buffer[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
uint ubo_load_2 = u[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
const uint scalar_offset_3 = ((offset + 12u)) / 4;
|
||||
uint ubo_load_3 = buffer[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
uint ubo_load_3 = u[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
return matrix<float16_t, 4, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_4 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_5 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4]), tint_symbol_3(buffer, (offset + 4u)), asint(buffer[scalar_offset_5 / 4][scalar_offset_5 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_4 / 4][scalar_offset_4 % 4]), u_load_3((offset + 4u)), asint(u[scalar_offset_5 / 4][scalar_offset_5 % 4])};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 128u)));
|
||||
arr[i] = u_load_1((offset + (i * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -43,13 +43,10 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
p = tint_symbol(u, 0u);
|
||||
p[1] = tint_symbol_1(u, 256u);
|
||||
p[3].m = tint_symbol_3(u, 260u);
|
||||
p = u_load(0u);
|
||||
p[1] = u_load_1(256u);
|
||||
p[3].m = u_load_3(260u);
|
||||
uint ubo_load_4 = u[0].z;
|
||||
p[1].m[0] = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx;
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002074AC3FD30(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,53 +11,53 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
RWByteAddressBuffer s : register(u1, space0);
|
||||
|
||||
void tint_symbol_3(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 4, 2> value) {
|
||||
buffer.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
||||
buffer.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
||||
buffer.Store<vector<float16_t, 2> >((offset + 8u), value[2u]);
|
||||
buffer.Store<vector<float16_t, 2> >((offset + 12u), value[3u]);
|
||||
void s_store_3(uint offset, matrix<float16_t, 4, 2> value) {
|
||||
s.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
||||
s.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
||||
s.Store<vector<float16_t, 2> >((offset + 8u), value[2u]);
|
||||
s.Store<vector<float16_t, 2> >((offset + 12u), value[3u]);
|
||||
}
|
||||
|
||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, S value) {
|
||||
buffer.Store((offset + 0u), asuint(value.before));
|
||||
tint_symbol_3(buffer, (offset + 4u), value.m);
|
||||
buffer.Store((offset + 64u), asuint(value.after));
|
||||
void s_store_1(uint offset, S value) {
|
||||
s.Store((offset + 0u), asuint(value.before));
|
||||
s_store_3((offset + 4u), value.m);
|
||||
s.Store((offset + 64u), asuint(value.after));
|
||||
}
|
||||
|
||||
void tint_symbol(RWByteAddressBuffer buffer, uint offset, S value[4]) {
|
||||
S array[4] = value;
|
||||
void s_store(uint offset, S value[4]) {
|
||||
S array_1[4] = value;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
tint_symbol_1(buffer, (offset + (i * 128u)), array[i]);
|
||||
s_store_1((offset + (i * 128u)), array_1[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
matrix<float16_t, 4, 2> tint_symbol_8(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 4, 2> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
|
||||
uint ubo_load = u[scalar_offset / 4][scalar_offset % 4];
|
||||
const uint scalar_offset_1 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
uint ubo_load_1 = u[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
const uint scalar_offset_2 = ((offset + 8u)) / 4;
|
||||
uint ubo_load_2 = buffer[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
uint ubo_load_2 = u[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
const uint scalar_offset_3 = ((offset + 12u)) / 4;
|
||||
uint ubo_load_3 = buffer[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
uint ubo_load_3 = u[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
return matrix<float16_t, 4, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))));
|
||||
}
|
||||
|
||||
S tint_symbol_6(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_4 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_5 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_10 = {asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4]), tint_symbol_8(buffer, (offset + 4u)), asint(buffer[scalar_offset_5 / 4][scalar_offset_5 % 4])};
|
||||
return tint_symbol_10;
|
||||
const S tint_symbol = {asint(u[scalar_offset_4 / 4][scalar_offset_4 % 4]), u_load_3((offset + 4u)), asint(u[scalar_offset_5 / 4][scalar_offset_5 % 4])};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_5_ret[4];
|
||||
tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_6(buffer, (offset + (i_1 * 128u)));
|
||||
arr[i_1] = u_load_1((offset + (i_1 * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -65,13 +65,10 @@ tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
tint_symbol(s, 0u, tint_symbol_5(u, 0u));
|
||||
tint_symbol_1(s, 128u, tint_symbol_6(u, 256u));
|
||||
tint_symbol_3(s, 388u, tint_symbol_8(u, 260u));
|
||||
s_store(0u, u_load(0u));
|
||||
s_store_1(128u, u_load_1(256u));
|
||||
s_store_3(388u, u_load_3(260u));
|
||||
uint ubo_load_4 = u[0].z;
|
||||
s.Store<vector<float16_t, 2> >(132u, vector<float16_t, 2>(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000185CE589540(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -15,31 +15,31 @@ struct tint_symbol_1 {
|
||||
uint local_invocation_index : SV_GroupIndex;
|
||||
};
|
||||
|
||||
matrix<float16_t, 4, 2> tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 4, 2> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
|
||||
uint ubo_load = u[scalar_offset / 4][scalar_offset % 4];
|
||||
const uint scalar_offset_1 = ((offset + 4u)) / 4;
|
||||
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
uint ubo_load_1 = u[scalar_offset_1 / 4][scalar_offset_1 % 4];
|
||||
const uint scalar_offset_2 = ((offset + 8u)) / 4;
|
||||
uint ubo_load_2 = buffer[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
uint ubo_load_2 = u[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
const uint scalar_offset_3 = ((offset + 12u)) / 4;
|
||||
uint ubo_load_3 = buffer[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
uint ubo_load_3 = u[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
return matrix<float16_t, 4, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))));
|
||||
}
|
||||
|
||||
S tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_4 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_5 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_8 = {asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4]), tint_symbol_5(buffer, (offset + 4u)), asint(buffer[scalar_offset_5 / 4][scalar_offset_5 % 4])};
|
||||
return tint_symbol_8;
|
||||
const S tint_symbol_3 = {asint(u[scalar_offset_4 / 4][scalar_offset_4 % 4]), u_load_3((offset + 4u)), asint(u[scalar_offset_5 / 4][scalar_offset_5 % 4])};
|
||||
return tint_symbol_3;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_2_ret[4];
|
||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_3(buffer, (offset + (i_1 * 128u)));
|
||||
arr[i_1] = u_load_1((offset + (i_1 * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -49,14 +49,14 @@ void f_inner(uint local_invocation_index) {
|
||||
{
|
||||
for(uint idx = local_invocation_index; (idx < 4u); idx = (idx + 1u)) {
|
||||
const uint i = idx;
|
||||
const S tint_symbol_7 = (S)0;
|
||||
w[i] = tint_symbol_7;
|
||||
const S tint_symbol_2 = (S)0;
|
||||
w[i] = tint_symbol_2;
|
||||
}
|
||||
}
|
||||
GroupMemoryBarrierWithGroupSync();
|
||||
w = tint_symbol_2(u, 0u);
|
||||
w[1] = tint_symbol_3(u, 256u);
|
||||
w[3].m = tint_symbol_5(u, 260u);
|
||||
w = u_load(0u);
|
||||
w[1] = u_load_1(256u);
|
||||
w[3].m = u_load_3(260u);
|
||||
uint ubo_load_4 = u[0].z;
|
||||
w[1].m[0] = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx;
|
||||
}
|
||||
@@ -66,6 +66,3 @@ void f(tint_symbol_1 tint_symbol) {
|
||||
f_inner(tint_symbol.local_invocation_index);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001B8BDB52100(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -17,57 +17,57 @@ int i() {
|
||||
return counter;
|
||||
}
|
||||
|
||||
matrix<float16_t, 4, 3> tint_symbol_8(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 4, 3> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = a[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = a[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
return matrix<float16_t, 4, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]), vector<float16_t, 3>(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]));
|
||||
}
|
||||
|
||||
Inner tint_symbol_7(uint4 buffer[64], uint offset) {
|
||||
const Inner tint_symbol_11 = {tint_symbol_8(buffer, (offset + 0u))};
|
||||
return tint_symbol_11;
|
||||
Inner a_load_3(uint offset) {
|
||||
const Inner tint_symbol_4 = {a_load_4((offset + 0u))};
|
||||
return tint_symbol_4;
|
||||
}
|
||||
|
||||
typedef Inner tint_symbol_6_ret[4];
|
||||
tint_symbol_6_ret tint_symbol_6(uint4 buffer[64], uint offset) {
|
||||
typedef Inner a_load_2_ret[4];
|
||||
a_load_2_ret a_load_2(uint offset) {
|
||||
Inner arr[4] = (Inner[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_7(buffer, (offset + (i_1 * 64u)));
|
||||
arr[i_1] = a_load_3((offset + (i_1 * 64u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
Outer tint_symbol_5(uint4 buffer[64], uint offset) {
|
||||
const Outer tint_symbol_12 = {tint_symbol_6(buffer, (offset + 0u))};
|
||||
return tint_symbol_12;
|
||||
Outer a_load_1(uint offset) {
|
||||
const Outer tint_symbol_5 = {a_load_2((offset + 0u))};
|
||||
return tint_symbol_5;
|
||||
}
|
||||
|
||||
typedef Outer tint_symbol_4_ret[4];
|
||||
tint_symbol_4_ret tint_symbol_4(uint4 buffer[64], uint offset) {
|
||||
typedef Outer a_load_ret[4];
|
||||
a_load_ret a_load(uint offset) {
|
||||
Outer arr_1[4] = (Outer[4])0;
|
||||
{
|
||||
for(uint i_2 = 0u; (i_2 < 4u); i_2 = (i_2 + 1u)) {
|
||||
arr_1[i_2] = tint_symbol_5(buffer, (offset + (i_2 * 256u)));
|
||||
arr_1[i_2] = a_load_1((offset + (i_2 * 256u)));
|
||||
}
|
||||
}
|
||||
return arr_1;
|
||||
@@ -78,11 +78,11 @@ void f() {
|
||||
const int p_a_i_save = i();
|
||||
const int p_a_i_a_i_save = i();
|
||||
const int p_a_i_a_i_m_i_save = i();
|
||||
const Outer l_a[4] = tint_symbol_4(a, 0u);
|
||||
const Outer l_a_i = tint_symbol_5(a, (256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a[4] = tint_symbol_6(a, (256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a_i = tint_symbol_7(a, ((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const matrix<float16_t, 4, 3> l_a_i_a_i_m = tint_symbol_8(a, ((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const Outer l_a[4] = a_load(0u);
|
||||
const Outer l_a_i = a_load_1((256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a[4] = a_load_2((256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a_i = a_load_3(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const matrix<float16_t, 4, 3> l_a_i_a_i_m = a_load_4(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const uint scalar_offset_4 = ((((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))) + (8u * uint(p_a_i_a_i_m_i_save)))) / 4;
|
||||
uint4 ubo_load_9 = a[scalar_offset_4 / 4];
|
||||
uint2 ubo_load_8 = ((scalar_offset_4 & 2) ? ubo_load_9.zw : ubo_load_9.xy);
|
||||
@@ -98,6 +98,3 @@ void f() {
|
||||
const float16_t l_a_i_a_i_m_i_i = float16_t(f16tof32(((a[scalar_offset_index / 4][scalar_offset_index % 4] >> (scalar_offset_bytes % 4 == 0 ? 0 : 16)) & 0xFFFF)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000236CB5C19B0(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,57 +11,57 @@ cbuffer cbuffer_a : register(b0, space0) {
|
||||
uint4 a[64];
|
||||
};
|
||||
|
||||
matrix<float16_t, 4, 3> tint_symbol_4(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 4, 3> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = a[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = a[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
return matrix<float16_t, 4, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]), vector<float16_t, 3>(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]));
|
||||
}
|
||||
|
||||
Inner tint_symbol_3(uint4 buffer[64], uint offset) {
|
||||
const Inner tint_symbol_7 = {tint_symbol_4(buffer, (offset + 0u))};
|
||||
return tint_symbol_7;
|
||||
Inner a_load_3(uint offset) {
|
||||
const Inner tint_symbol = {a_load_4((offset + 0u))};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef Inner tint_symbol_2_ret[4];
|
||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[64], uint offset) {
|
||||
typedef Inner a_load_2_ret[4];
|
||||
a_load_2_ret a_load_2(uint offset) {
|
||||
Inner arr[4] = (Inner[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_3(buffer, (offset + (i * 64u)));
|
||||
arr[i] = a_load_3((offset + (i * 64u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
Outer tint_symbol_1(uint4 buffer[64], uint offset) {
|
||||
const Outer tint_symbol_8 = {tint_symbol_2(buffer, (offset + 0u))};
|
||||
return tint_symbol_8;
|
||||
Outer a_load_1(uint offset) {
|
||||
const Outer tint_symbol_1 = {a_load_2((offset + 0u))};
|
||||
return tint_symbol_1;
|
||||
}
|
||||
|
||||
typedef Outer tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
||||
typedef Outer a_load_ret[4];
|
||||
a_load_ret a_load(uint offset) {
|
||||
Outer arr_1[4] = (Outer[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr_1[i_1] = tint_symbol_1(buffer, (offset + (i_1 * 256u)));
|
||||
arr_1[i_1] = a_load_1((offset + (i_1 * 256u)));
|
||||
}
|
||||
}
|
||||
return arr_1;
|
||||
@@ -69,11 +69,11 @@ tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const Outer l_a[4] = tint_symbol(a, 0u);
|
||||
const Outer l_a_3 = tint_symbol_1(a, 768u);
|
||||
const Inner l_a_3_a[4] = tint_symbol_2(a, 768u);
|
||||
const Inner l_a_3_a_2 = tint_symbol_3(a, 896u);
|
||||
const matrix<float16_t, 4, 3> l_a_3_a_2_m = tint_symbol_4(a, 896u);
|
||||
const Outer l_a[4] = a_load(0u);
|
||||
const Outer l_a_3 = a_load_1(768u);
|
||||
const Inner l_a_3_a[4] = a_load_2(768u);
|
||||
const Inner l_a_3_a_2 = a_load_3(896u);
|
||||
const matrix<float16_t, 4, 3> l_a_3_a_2_m = a_load_4(896u);
|
||||
uint2 ubo_load_8 = a[56].zw;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16);
|
||||
@@ -81,6 +81,3 @@ void f() {
|
||||
const float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].z) & 0xFFFF)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001CF48DE1160(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -4,24 +4,24 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
uint4 u[32];
|
||||
};
|
||||
|
||||
matrix<float16_t, 4, 3> tint_symbol(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 4, 3> u_load(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
@@ -30,7 +30,7 @@ matrix<float16_t, 4, 3> tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const matrix<float16_t, 3, 4> t = transpose(tint_symbol(u, 264u));
|
||||
const matrix<float16_t, 3, 4> t = transpose(u_load(264u));
|
||||
uint2 ubo_load_8 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16);
|
||||
@@ -41,6 +41,3 @@ void f() {
|
||||
const float16_t a = abs(vector<float16_t, 3>(ubo_load_9_xz[0], ubo_load_9_y, ubo_load_9_xz[1]).zxy.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000023590C3D7E0(5,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -25,43 +25,43 @@ void d(vector<float16_t, 3> v) {
|
||||
void e(float16_t f_1) {
|
||||
}
|
||||
|
||||
matrix<float16_t, 4, 3> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 4, 3> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
return matrix<float16_t, 4, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]), vector<float16_t, 3>(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_4 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_5 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4]), tint_symbol_3(buffer, (offset + 8u)), asint(buffer[scalar_offset_5 / 4][scalar_offset_5 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_4 / 4][scalar_offset_4 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_5 / 4][scalar_offset_5 % 4])};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 128u)));
|
||||
arr[i] = u_load_1((offset + (i * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -69,9 +69,9 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
a(tint_symbol(u, 0u));
|
||||
b(tint_symbol_1(u, 256u));
|
||||
c(tint_symbol_3(u, 264u));
|
||||
a(u_load(0u));
|
||||
b(u_load_1(256u));
|
||||
c(u_load_3(264u));
|
||||
uint2 ubo_load_8 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16);
|
||||
@@ -82,6 +82,3 @@ void f() {
|
||||
e(vector<float16_t, 3>(ubo_load_9_xz[0], ubo_load_9_y, ubo_load_9_xz[1]).zxy.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001FF77F70B40(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,43 +11,43 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
static S p[4] = (S[4])0;
|
||||
|
||||
matrix<float16_t, 4, 3> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 4, 3> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
return matrix<float16_t, 4, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]), vector<float16_t, 3>(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_4 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_5 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4]), tint_symbol_3(buffer, (offset + 8u)), asint(buffer[scalar_offset_5 / 4][scalar_offset_5 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_4 / 4][scalar_offset_4 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_5 / 4][scalar_offset_5 % 4])};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 128u)));
|
||||
arr[i] = u_load_1((offset + (i * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -55,15 +55,12 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
p = tint_symbol(u, 0u);
|
||||
p[1] = tint_symbol_1(u, 256u);
|
||||
p[3].m = tint_symbol_3(u, 264u);
|
||||
p = u_load(0u);
|
||||
p[1] = u_load_1(256u);
|
||||
p[3].m = u_load_3(264u);
|
||||
uint2 ubo_load_8 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16);
|
||||
p[1].m[0] = vector<float16_t, 3>(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1]).zxy;
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000019CC8F77C00(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,65 +11,65 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
RWByteAddressBuffer s : register(u1, space0);
|
||||
|
||||
void tint_symbol_3(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 4, 3> value) {
|
||||
buffer.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
||||
buffer.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
||||
buffer.Store<vector<float16_t, 3> >((offset + 16u), value[2u]);
|
||||
buffer.Store<vector<float16_t, 3> >((offset + 24u), value[3u]);
|
||||
void s_store_3(uint offset, matrix<float16_t, 4, 3> value) {
|
||||
s.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
||||
s.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
||||
s.Store<vector<float16_t, 3> >((offset + 16u), value[2u]);
|
||||
s.Store<vector<float16_t, 3> >((offset + 24u), value[3u]);
|
||||
}
|
||||
|
||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, S value) {
|
||||
buffer.Store((offset + 0u), asuint(value.before));
|
||||
tint_symbol_3(buffer, (offset + 8u), value.m);
|
||||
buffer.Store((offset + 64u), asuint(value.after));
|
||||
void s_store_1(uint offset, S value) {
|
||||
s.Store((offset + 0u), asuint(value.before));
|
||||
s_store_3((offset + 8u), value.m);
|
||||
s.Store((offset + 64u), asuint(value.after));
|
||||
}
|
||||
|
||||
void tint_symbol(RWByteAddressBuffer buffer, uint offset, S value[4]) {
|
||||
S array[4] = value;
|
||||
void s_store(uint offset, S value[4]) {
|
||||
S array_1[4] = value;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
tint_symbol_1(buffer, (offset + (i * 128u)), array[i]);
|
||||
s_store_1((offset + (i * 128u)), array_1[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
matrix<float16_t, 4, 3> tint_symbol_8(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 4, 3> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
return matrix<float16_t, 4, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]), vector<float16_t, 3>(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_6(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_4 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_5 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_10 = {asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4]), tint_symbol_8(buffer, (offset + 8u)), asint(buffer[scalar_offset_5 / 4][scalar_offset_5 % 4])};
|
||||
return tint_symbol_10;
|
||||
const S tint_symbol = {asint(u[scalar_offset_4 / 4][scalar_offset_4 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_5 / 4][scalar_offset_5 % 4])};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_5_ret[4];
|
||||
tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_6(buffer, (offset + (i_1 * 128u)));
|
||||
arr[i_1] = u_load_1((offset + (i_1 * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -77,15 +77,12 @@ tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
tint_symbol(s, 0u, tint_symbol_5(u, 0u));
|
||||
tint_symbol_1(s, 128u, tint_symbol_6(u, 256u));
|
||||
tint_symbol_3(s, 392u, tint_symbol_8(u, 264u));
|
||||
s_store(0u, u_load(0u));
|
||||
s_store_1(128u, u_load_1(256u));
|
||||
s_store_3(392u, u_load_3(264u));
|
||||
uint2 ubo_load_8 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16);
|
||||
s.Store<vector<float16_t, 3> >(136u, vector<float16_t, 3>(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1]).zxy);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000168827ABEC0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -15,43 +15,43 @@ struct tint_symbol_1 {
|
||||
uint local_invocation_index : SV_GroupIndex;
|
||||
};
|
||||
|
||||
matrix<float16_t, 4, 3> tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 4, 3> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
return matrix<float16_t, 4, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]), vector<float16_t, 3>(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_4 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_5 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_8 = {asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4]), tint_symbol_5(buffer, (offset + 8u)), asint(buffer[scalar_offset_5 / 4][scalar_offset_5 % 4])};
|
||||
return tint_symbol_8;
|
||||
const S tint_symbol_3 = {asint(u[scalar_offset_4 / 4][scalar_offset_4 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_5 / 4][scalar_offset_5 % 4])};
|
||||
return tint_symbol_3;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_2_ret[4];
|
||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_3(buffer, (offset + (i_1 * 128u)));
|
||||
arr[i_1] = u_load_1((offset + (i_1 * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -61,14 +61,14 @@ void f_inner(uint local_invocation_index) {
|
||||
{
|
||||
for(uint idx = local_invocation_index; (idx < 4u); idx = (idx + 1u)) {
|
||||
const uint i = idx;
|
||||
const S tint_symbol_7 = (S)0;
|
||||
w[i] = tint_symbol_7;
|
||||
const S tint_symbol_2 = (S)0;
|
||||
w[i] = tint_symbol_2;
|
||||
}
|
||||
}
|
||||
GroupMemoryBarrierWithGroupSync();
|
||||
w = tint_symbol_2(u, 0u);
|
||||
w[1] = tint_symbol_3(u, 256u);
|
||||
w[3].m = tint_symbol_5(u, 264u);
|
||||
w = u_load(0u);
|
||||
w[1] = u_load_1(256u);
|
||||
w[3].m = u_load_3(264u);
|
||||
uint2 ubo_load_8 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16);
|
||||
@@ -80,6 +80,3 @@ void f(tint_symbol_1 tint_symbol) {
|
||||
f_inner(tint_symbol.local_invocation_index);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002136A44CFC0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -17,57 +17,57 @@ int i() {
|
||||
return counter;
|
||||
}
|
||||
|
||||
matrix<float16_t, 4, 4> tint_symbol_8(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 4, 4> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = a[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = a[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
return matrix<float16_t, 4, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]), vector<float16_t, 4>(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]));
|
||||
}
|
||||
|
||||
Inner tint_symbol_7(uint4 buffer[64], uint offset) {
|
||||
const Inner tint_symbol_11 = {tint_symbol_8(buffer, (offset + 0u))};
|
||||
return tint_symbol_11;
|
||||
Inner a_load_3(uint offset) {
|
||||
const Inner tint_symbol_4 = {a_load_4((offset + 0u))};
|
||||
return tint_symbol_4;
|
||||
}
|
||||
|
||||
typedef Inner tint_symbol_6_ret[4];
|
||||
tint_symbol_6_ret tint_symbol_6(uint4 buffer[64], uint offset) {
|
||||
typedef Inner a_load_2_ret[4];
|
||||
a_load_2_ret a_load_2(uint offset) {
|
||||
Inner arr[4] = (Inner[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_7(buffer, (offset + (i_1 * 64u)));
|
||||
arr[i_1] = a_load_3((offset + (i_1 * 64u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
Outer tint_symbol_5(uint4 buffer[64], uint offset) {
|
||||
const Outer tint_symbol_12 = {tint_symbol_6(buffer, (offset + 0u))};
|
||||
return tint_symbol_12;
|
||||
Outer a_load_1(uint offset) {
|
||||
const Outer tint_symbol_5 = {a_load_2((offset + 0u))};
|
||||
return tint_symbol_5;
|
||||
}
|
||||
|
||||
typedef Outer tint_symbol_4_ret[4];
|
||||
tint_symbol_4_ret tint_symbol_4(uint4 buffer[64], uint offset) {
|
||||
typedef Outer a_load_ret[4];
|
||||
a_load_ret a_load(uint offset) {
|
||||
Outer arr_1[4] = (Outer[4])0;
|
||||
{
|
||||
for(uint i_2 = 0u; (i_2 < 4u); i_2 = (i_2 + 1u)) {
|
||||
arr_1[i_2] = tint_symbol_5(buffer, (offset + (i_2 * 256u)));
|
||||
arr_1[i_2] = a_load_1((offset + (i_2 * 256u)));
|
||||
}
|
||||
}
|
||||
return arr_1;
|
||||
@@ -78,11 +78,11 @@ void f() {
|
||||
const int p_a_i_save = i();
|
||||
const int p_a_i_a_i_save = i();
|
||||
const int p_a_i_a_i_m_i_save = i();
|
||||
const Outer l_a[4] = tint_symbol_4(a, 0u);
|
||||
const Outer l_a_i = tint_symbol_5(a, (256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a[4] = tint_symbol_6(a, (256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a_i = tint_symbol_7(a, ((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const matrix<float16_t, 4, 4> l_a_i_a_i_m = tint_symbol_8(a, ((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const Outer l_a[4] = a_load(0u);
|
||||
const Outer l_a_i = a_load_1((256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a[4] = a_load_2((256u * uint(p_a_i_save)));
|
||||
const Inner l_a_i_a_i = a_load_3(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const matrix<float16_t, 4, 4> l_a_i_a_i_m = a_load_4(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
|
||||
const uint scalar_offset_4 = ((((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))) + (8u * uint(p_a_i_a_i_m_i_save)))) / 4;
|
||||
uint4 ubo_load_9 = a[scalar_offset_4 / 4];
|
||||
uint2 ubo_load_8 = ((scalar_offset_4 & 2) ? ubo_load_9.zw : ubo_load_9.xy);
|
||||
@@ -98,6 +98,3 @@ void f() {
|
||||
const float16_t l_a_i_a_i_m_i_i = float16_t(f16tof32(((a[scalar_offset_index / 4][scalar_offset_index % 4] >> (scalar_offset_bytes % 4 == 0 ? 0 : 16)) & 0xFFFF)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000022FAD9FCD80(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,57 +11,57 @@ cbuffer cbuffer_a : register(b0, space0) {
|
||||
uint4 a[64];
|
||||
};
|
||||
|
||||
matrix<float16_t, 4, 4> tint_symbol_4(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 4, 4> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = a[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = a[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
return matrix<float16_t, 4, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]), vector<float16_t, 4>(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]));
|
||||
}
|
||||
|
||||
Inner tint_symbol_3(uint4 buffer[64], uint offset) {
|
||||
const Inner tint_symbol_7 = {tint_symbol_4(buffer, (offset + 0u))};
|
||||
return tint_symbol_7;
|
||||
Inner a_load_3(uint offset) {
|
||||
const Inner tint_symbol = {a_load_4((offset + 0u))};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef Inner tint_symbol_2_ret[4];
|
||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[64], uint offset) {
|
||||
typedef Inner a_load_2_ret[4];
|
||||
a_load_2_ret a_load_2(uint offset) {
|
||||
Inner arr[4] = (Inner[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_3(buffer, (offset + (i * 64u)));
|
||||
arr[i] = a_load_3((offset + (i * 64u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
Outer tint_symbol_1(uint4 buffer[64], uint offset) {
|
||||
const Outer tint_symbol_8 = {tint_symbol_2(buffer, (offset + 0u))};
|
||||
return tint_symbol_8;
|
||||
Outer a_load_1(uint offset) {
|
||||
const Outer tint_symbol_1 = {a_load_2((offset + 0u))};
|
||||
return tint_symbol_1;
|
||||
}
|
||||
|
||||
typedef Outer tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
||||
typedef Outer a_load_ret[4];
|
||||
a_load_ret a_load(uint offset) {
|
||||
Outer arr_1[4] = (Outer[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr_1[i_1] = tint_symbol_1(buffer, (offset + (i_1 * 256u)));
|
||||
arr_1[i_1] = a_load_1((offset + (i_1 * 256u)));
|
||||
}
|
||||
}
|
||||
return arr_1;
|
||||
@@ -69,11 +69,11 @@ tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const Outer l_a[4] = tint_symbol(a, 0u);
|
||||
const Outer l_a_3 = tint_symbol_1(a, 768u);
|
||||
const Inner l_a_3_a[4] = tint_symbol_2(a, 768u);
|
||||
const Inner l_a_3_a_2 = tint_symbol_3(a, 896u);
|
||||
const matrix<float16_t, 4, 4> l_a_3_a_2_m = tint_symbol_4(a, 896u);
|
||||
const Outer l_a[4] = a_load(0u);
|
||||
const Outer l_a_3 = a_load_1(768u);
|
||||
const Inner l_a_3_a[4] = a_load_2(768u);
|
||||
const Inner l_a_3_a_2 = a_load_3(896u);
|
||||
const matrix<float16_t, 4, 4> l_a_3_a_2_m = a_load_4(896u);
|
||||
uint2 ubo_load_8 = a[56].zw;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_8_yw = vector<float16_t, 2>(f16tof32(ubo_load_8 >> 16));
|
||||
@@ -81,6 +81,3 @@ void f() {
|
||||
const float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].z) & 0xFFFF)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000015C09593480(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -4,24 +4,24 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
uint4 u[32];
|
||||
};
|
||||
|
||||
matrix<float16_t, 4, 4> tint_symbol(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 4, 4> u_load(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
@@ -30,7 +30,7 @@ matrix<float16_t, 4, 4> tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const matrix<float16_t, 4, 4> t = transpose(tint_symbol(u, 264u));
|
||||
const matrix<float16_t, 4, 4> t = transpose(u_load(264u));
|
||||
uint2 ubo_load_8 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_8_yw = vector<float16_t, 2>(f16tof32(ubo_load_8 >> 16));
|
||||
@@ -41,6 +41,3 @@ void f() {
|
||||
const float16_t a = abs(vector<float16_t, 4>(ubo_load_9_xz[0], ubo_load_9_yw[0], ubo_load_9_xz[1], ubo_load_9_yw[1]).ywxz.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000025F14CDF3D0(5,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -25,43 +25,43 @@ void d(vector<float16_t, 4> v) {
|
||||
void e(float16_t f_1) {
|
||||
}
|
||||
|
||||
matrix<float16_t, 4, 4> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 4, 4> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
return matrix<float16_t, 4, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]), vector<float16_t, 4>(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_4 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_5 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4]), tint_symbol_3(buffer, (offset + 8u)), asint(buffer[scalar_offset_5 / 4][scalar_offset_5 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_4 / 4][scalar_offset_4 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_5 / 4][scalar_offset_5 % 4])};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 128u)));
|
||||
arr[i] = u_load_1((offset + (i * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -69,9 +69,9 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
a(tint_symbol(u, 0u));
|
||||
b(tint_symbol_1(u, 256u));
|
||||
c(tint_symbol_3(u, 264u));
|
||||
a(u_load(0u));
|
||||
b(u_load_1(256u));
|
||||
c(u_load_3(264u));
|
||||
uint2 ubo_load_8 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_8_yw = vector<float16_t, 2>(f16tof32(ubo_load_8 >> 16));
|
||||
@@ -82,6 +82,3 @@ void f() {
|
||||
e(vector<float16_t, 4>(ubo_load_9_xz[0], ubo_load_9_yw[0], ubo_load_9_xz[1], ubo_load_9_yw[1]).ywxz.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000151DEE459C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,43 +11,43 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
static S p[4] = (S[4])0;
|
||||
|
||||
matrix<float16_t, 4, 4> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 4, 4> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
return matrix<float16_t, 4, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]), vector<float16_t, 4>(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_4 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_5 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4]), tint_symbol_3(buffer, (offset + 8u)), asint(buffer[scalar_offset_5 / 4][scalar_offset_5 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_4 / 4][scalar_offset_4 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_5 / 4][scalar_offset_5 % 4])};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_ret[4];
|
||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
arr[i] = tint_symbol_1(buffer, (offset + (i * 128u)));
|
||||
arr[i] = u_load_1((offset + (i * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -55,15 +55,12 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
p = tint_symbol(u, 0u);
|
||||
p[1] = tint_symbol_1(u, 256u);
|
||||
p[3].m = tint_symbol_3(u, 264u);
|
||||
p = u_load(0u);
|
||||
p[1] = u_load_1(256u);
|
||||
p[3].m = u_load_3(264u);
|
||||
uint2 ubo_load_8 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_8_yw = vector<float16_t, 2>(f16tof32(ubo_load_8 >> 16));
|
||||
p[1].m[0] = vector<float16_t, 4>(ubo_load_8_xz[0], ubo_load_8_yw[0], ubo_load_8_xz[1], ubo_load_8_yw[1]).ywxz;
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001D8880F79A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,65 +11,65 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
RWByteAddressBuffer s : register(u1, space0);
|
||||
|
||||
void tint_symbol_3(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 4, 4> value) {
|
||||
buffer.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||
buffer.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||
buffer.Store<vector<float16_t, 4> >((offset + 16u), value[2u]);
|
||||
buffer.Store<vector<float16_t, 4> >((offset + 24u), value[3u]);
|
||||
void s_store_3(uint offset, matrix<float16_t, 4, 4> value) {
|
||||
s.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||
s.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||
s.Store<vector<float16_t, 4> >((offset + 16u), value[2u]);
|
||||
s.Store<vector<float16_t, 4> >((offset + 24u), value[3u]);
|
||||
}
|
||||
|
||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, S value) {
|
||||
buffer.Store((offset + 0u), asuint(value.before));
|
||||
tint_symbol_3(buffer, (offset + 8u), value.m);
|
||||
buffer.Store((offset + 64u), asuint(value.after));
|
||||
void s_store_1(uint offset, S value) {
|
||||
s.Store((offset + 0u), asuint(value.before));
|
||||
s_store_3((offset + 8u), value.m);
|
||||
s.Store((offset + 64u), asuint(value.after));
|
||||
}
|
||||
|
||||
void tint_symbol(RWByteAddressBuffer buffer, uint offset, S value[4]) {
|
||||
S array[4] = value;
|
||||
void s_store(uint offset, S value[4]) {
|
||||
S array_1[4] = value;
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
tint_symbol_1(buffer, (offset + (i * 128u)), array[i]);
|
||||
s_store_1((offset + (i * 128u)), array_1[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
matrix<float16_t, 4, 4> tint_symbol_8(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 4, 4> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
return matrix<float16_t, 4, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]), vector<float16_t, 4>(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_6(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_4 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_5 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_10 = {asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4]), tint_symbol_8(buffer, (offset + 8u)), asint(buffer[scalar_offset_5 / 4][scalar_offset_5 % 4])};
|
||||
return tint_symbol_10;
|
||||
const S tint_symbol = {asint(u[scalar_offset_4 / 4][scalar_offset_4 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_5 / 4][scalar_offset_5 % 4])};
|
||||
return tint_symbol;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_5_ret[4];
|
||||
tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_6(buffer, (offset + (i_1 * 128u)));
|
||||
arr[i_1] = u_load_1((offset + (i_1 * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -77,15 +77,12 @@ tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
tint_symbol(s, 0u, tint_symbol_5(u, 0u));
|
||||
tint_symbol_1(s, 128u, tint_symbol_6(u, 256u));
|
||||
tint_symbol_3(s, 392u, tint_symbol_8(u, 264u));
|
||||
s_store(0u, u_load(0u));
|
||||
s_store_1(128u, u_load_1(256u));
|
||||
s_store_3(392u, u_load_3(264u));
|
||||
uint2 ubo_load_8 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_8_yw = vector<float16_t, 2>(f16tof32(ubo_load_8 >> 16));
|
||||
s.Store<vector<float16_t, 4> >(136u, vector<float16_t, 4>(ubo_load_8_xz[0], ubo_load_8_yw[0], ubo_load_8_xz[1], ubo_load_8_yw[1]).ywxz);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000013BAAFBAEB0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -15,43 +15,43 @@ struct tint_symbol_1 {
|
||||
uint local_invocation_index : SV_GroupIndex;
|
||||
};
|
||||
|
||||
matrix<float16_t, 4, 4> tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 4, 4> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
return matrix<float16_t, 4, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]), vector<float16_t, 4>(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_4 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_5 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_8 = {asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4]), tint_symbol_5(buffer, (offset + 8u)), asint(buffer[scalar_offset_5 / 4][scalar_offset_5 % 4])};
|
||||
return tint_symbol_8;
|
||||
const S tint_symbol_3 = {asint(u[scalar_offset_4 / 4][scalar_offset_4 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_5 / 4][scalar_offset_5 % 4])};
|
||||
return tint_symbol_3;
|
||||
}
|
||||
|
||||
typedef S tint_symbol_2_ret[4];
|
||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[32], uint offset) {
|
||||
typedef S u_load_ret[4];
|
||||
u_load_ret u_load(uint offset) {
|
||||
S arr[4] = (S[4])0;
|
||||
{
|
||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||
arr[i_1] = tint_symbol_3(buffer, (offset + (i_1 * 128u)));
|
||||
arr[i_1] = u_load_1((offset + (i_1 * 128u)));
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -61,14 +61,14 @@ void f_inner(uint local_invocation_index) {
|
||||
{
|
||||
for(uint idx = local_invocation_index; (idx < 4u); idx = (idx + 1u)) {
|
||||
const uint i = idx;
|
||||
const S tint_symbol_7 = (S)0;
|
||||
w[i] = tint_symbol_7;
|
||||
const S tint_symbol_2 = (S)0;
|
||||
w[i] = tint_symbol_2;
|
||||
}
|
||||
}
|
||||
GroupMemoryBarrierWithGroupSync();
|
||||
w = tint_symbol_2(u, 0u);
|
||||
w[1] = tint_symbol_3(u, 256u);
|
||||
w[3].m = tint_symbol_5(u, 264u);
|
||||
w = u_load(0u);
|
||||
w[1] = u_load_1(256u);
|
||||
w[3].m = u_load_3(264u);
|
||||
uint2 ubo_load_8 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_8_yw = vector<float16_t, 2>(f16tof32(ubo_load_8 >> 16));
|
||||
@@ -80,6 +80,3 @@ void f(tint_symbol_1 tint_symbol) {
|
||||
f_inner(tint_symbol.local_invocation_index);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001355D73AE70(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user