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:
parent
f0e578f8bd
commit
b990d393f5
|
@ -226,8 +226,8 @@ void main() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Error parsing GLSL shader:
|
Error parsing GLSL shader:
|
||||||
ERROR: 0:75: 'textureQueryLevels' : no matching overloaded function found
|
ERROR: 0:75: 'textureQueryLevels' : no matching overloaded function found
|
||||||
ERROR: 0:75: '' : compilation terminated
|
ERROR: 0:75: '' : compilation terminated
|
||||||
ERROR: 2 compilation errors. No code generated.
|
ERROR: 2 compilation errors. No code generated.
|
||||||
|
|
||||||
|
|
||||||
|
@ -350,13 +350,13 @@ void export_level(uvec3 coord) {
|
||||||
if (all(lessThan(coord.xy, uvec2(uvec2(imageSize(tex_out)))))) {
|
if (all(lessThan(coord.xy, uvec2(uvec2(imageSize(tex_out)))))) {
|
||||||
uint dst_offset = (coord.x + (coord.y * ubo.inner.width));
|
uint dst_offset = (coord.x + (coord.y * ubo.inner.width));
|
||||||
uint src_offset = ((coord.x * 2u) + ((coord.y * 2u) * ubo.inner.width));
|
uint src_offset = ((coord.x * 2u) + ((coord.y * 2u) * ubo.inner.width));
|
||||||
float a_1 = buf_in.weights[(src_offset + 0u)];
|
float a = buf_in.weights[(src_offset + 0u)];
|
||||||
float b = buf_in.weights[(src_offset + 1u)];
|
float b = buf_in.weights[(src_offset + 1u)];
|
||||||
float c = buf_in.weights[((src_offset + 0u) + ubo.inner.width)];
|
float c = buf_in.weights[((src_offset + 0u) + ubo.inner.width)];
|
||||||
float d = buf_in.weights[((src_offset + 1u) + ubo.inner.width)];
|
float d = buf_in.weights[((src_offset + 1u) + ubo.inner.width)];
|
||||||
float sum = dot(vec4(a_1, b, c, d), vec4(1.0f));
|
float sum = dot(vec4(a, b, c, d), vec4(1.0f));
|
||||||
buf_out.weights[dst_offset] = (sum / 4.0f);
|
buf_out.weights[dst_offset] = (sum / 4.0f);
|
||||||
vec4 probabilities = (vec4(a_1, (a_1 + b), ((a_1 + b) + c), sum) / max(sum, 0.0001f));
|
vec4 probabilities = (vec4(a, (a + b), ((a + b) + c), sum) / max(sum, 0.0001f));
|
||||||
imageStore(tex_out, ivec2(coord.xy), probabilities);
|
imageStore(tex_out, ivec2(coord.xy), probabilities);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,95 +6,95 @@ struct tint_symbol_1 {
|
||||||
uint idx : SV_GroupIndex;
|
uint idx : SV_GroupIndex;
|
||||||
};
|
};
|
||||||
|
|
||||||
float2x2 tint_symbol_18(ByteAddressBuffer buffer, uint offset) {
|
float2x2 sb_load_16(uint offset) {
|
||||||
return float2x2(asfloat(buffer.Load2((offset + 0u))), asfloat(buffer.Load2((offset + 8u))));
|
return float2x2(asfloat(sb.Load2((offset + 0u))), asfloat(sb.Load2((offset + 8u))));
|
||||||
}
|
}
|
||||||
|
|
||||||
float2x3 tint_symbol_19(ByteAddressBuffer buffer, uint offset) {
|
float2x3 sb_load_17(uint offset) {
|
||||||
return float2x3(asfloat(buffer.Load3((offset + 0u))), asfloat(buffer.Load3((offset + 16u))));
|
return float2x3(asfloat(sb.Load3((offset + 0u))), asfloat(sb.Load3((offset + 16u))));
|
||||||
}
|
}
|
||||||
|
|
||||||
float2x4 tint_symbol_20(ByteAddressBuffer buffer, uint offset) {
|
float2x4 sb_load_18(uint offset) {
|
||||||
return float2x4(asfloat(buffer.Load4((offset + 0u))), asfloat(buffer.Load4((offset + 16u))));
|
return float2x4(asfloat(sb.Load4((offset + 0u))), asfloat(sb.Load4((offset + 16u))));
|
||||||
}
|
}
|
||||||
|
|
||||||
float3x2 tint_symbol_21(ByteAddressBuffer buffer, uint offset) {
|
float3x2 sb_load_19(uint offset) {
|
||||||
return float3x2(asfloat(buffer.Load2((offset + 0u))), asfloat(buffer.Load2((offset + 8u))), asfloat(buffer.Load2((offset + 16u))));
|
return float3x2(asfloat(sb.Load2((offset + 0u))), asfloat(sb.Load2((offset + 8u))), asfloat(sb.Load2((offset + 16u))));
|
||||||
}
|
}
|
||||||
|
|
||||||
float3x3 tint_symbol_22(ByteAddressBuffer buffer, uint offset) {
|
float3x3 sb_load_20(uint offset) {
|
||||||
return float3x3(asfloat(buffer.Load3((offset + 0u))), asfloat(buffer.Load3((offset + 16u))), asfloat(buffer.Load3((offset + 32u))));
|
return float3x3(asfloat(sb.Load3((offset + 0u))), asfloat(sb.Load3((offset + 16u))), asfloat(sb.Load3((offset + 32u))));
|
||||||
}
|
}
|
||||||
|
|
||||||
float3x4 tint_symbol_23(ByteAddressBuffer buffer, uint offset) {
|
float3x4 sb_load_21(uint offset) {
|
||||||
return float3x4(asfloat(buffer.Load4((offset + 0u))), asfloat(buffer.Load4((offset + 16u))), asfloat(buffer.Load4((offset + 32u))));
|
return float3x4(asfloat(sb.Load4((offset + 0u))), asfloat(sb.Load4((offset + 16u))), asfloat(sb.Load4((offset + 32u))));
|
||||||
}
|
}
|
||||||
|
|
||||||
float4x2 tint_symbol_24(ByteAddressBuffer buffer, uint offset) {
|
float4x2 sb_load_22(uint offset) {
|
||||||
return float4x2(asfloat(buffer.Load2((offset + 0u))), asfloat(buffer.Load2((offset + 8u))), asfloat(buffer.Load2((offset + 16u))), asfloat(buffer.Load2((offset + 24u))));
|
return float4x2(asfloat(sb.Load2((offset + 0u))), asfloat(sb.Load2((offset + 8u))), asfloat(sb.Load2((offset + 16u))), asfloat(sb.Load2((offset + 24u))));
|
||||||
}
|
}
|
||||||
|
|
||||||
float4x3 tint_symbol_25(ByteAddressBuffer buffer, uint offset) {
|
float4x3 sb_load_23(uint offset) {
|
||||||
return float4x3(asfloat(buffer.Load3((offset + 0u))), asfloat(buffer.Load3((offset + 16u))), asfloat(buffer.Load3((offset + 32u))), asfloat(buffer.Load3((offset + 48u))));
|
return float4x3(asfloat(sb.Load3((offset + 0u))), asfloat(sb.Load3((offset + 16u))), asfloat(sb.Load3((offset + 32u))), asfloat(sb.Load3((offset + 48u))));
|
||||||
}
|
}
|
||||||
|
|
||||||
float4x4 tint_symbol_26(ByteAddressBuffer buffer, uint offset) {
|
float4x4 sb_load_24(uint offset) {
|
||||||
return float4x4(asfloat(buffer.Load4((offset + 0u))), asfloat(buffer.Load4((offset + 16u))), asfloat(buffer.Load4((offset + 32u))), asfloat(buffer.Load4((offset + 48u))));
|
return float4x4(asfloat(sb.Load4((offset + 0u))), asfloat(sb.Load4((offset + 16u))), asfloat(sb.Load4((offset + 32u))), asfloat(sb.Load4((offset + 48u))));
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix<float16_t, 2, 2> tint_symbol_27(ByteAddressBuffer buffer, uint offset) {
|
matrix<float16_t, 2, 2> sb_load_25(uint offset) {
|
||||||
return matrix<float16_t, 2, 2>(buffer.Load<vector<float16_t, 2> >((offset + 0u)), buffer.Load<vector<float16_t, 2> >((offset + 4u)));
|
return matrix<float16_t, 2, 2>(sb.Load<vector<float16_t, 2> >((offset + 0u)), sb.Load<vector<float16_t, 2> >((offset + 4u)));
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix<float16_t, 2, 3> tint_symbol_28(ByteAddressBuffer buffer, uint offset) {
|
matrix<float16_t, 2, 3> sb_load_26(uint offset) {
|
||||||
return matrix<float16_t, 2, 3>(buffer.Load<vector<float16_t, 3> >((offset + 0u)), buffer.Load<vector<float16_t, 3> >((offset + 8u)));
|
return matrix<float16_t, 2, 3>(sb.Load<vector<float16_t, 3> >((offset + 0u)), sb.Load<vector<float16_t, 3> >((offset + 8u)));
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix<float16_t, 2, 4> tint_symbol_29(ByteAddressBuffer buffer, uint offset) {
|
matrix<float16_t, 2, 4> sb_load_27(uint offset) {
|
||||||
return matrix<float16_t, 2, 4>(buffer.Load<vector<float16_t, 4> >((offset + 0u)), buffer.Load<vector<float16_t, 4> >((offset + 8u)));
|
return matrix<float16_t, 2, 4>(sb.Load<vector<float16_t, 4> >((offset + 0u)), sb.Load<vector<float16_t, 4> >((offset + 8u)));
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix<float16_t, 3, 2> tint_symbol_30(ByteAddressBuffer buffer, uint offset) {
|
matrix<float16_t, 3, 2> sb_load_28(uint offset) {
|
||||||
return matrix<float16_t, 3, 2>(buffer.Load<vector<float16_t, 2> >((offset + 0u)), buffer.Load<vector<float16_t, 2> >((offset + 4u)), buffer.Load<vector<float16_t, 2> >((offset + 8u)));
|
return matrix<float16_t, 3, 2>(sb.Load<vector<float16_t, 2> >((offset + 0u)), sb.Load<vector<float16_t, 2> >((offset + 4u)), sb.Load<vector<float16_t, 2> >((offset + 8u)));
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix<float16_t, 3, 3> tint_symbol_31(ByteAddressBuffer buffer, uint offset) {
|
matrix<float16_t, 3, 3> sb_load_29(uint offset) {
|
||||||
return matrix<float16_t, 3, 3>(buffer.Load<vector<float16_t, 3> >((offset + 0u)), buffer.Load<vector<float16_t, 3> >((offset + 8u)), buffer.Load<vector<float16_t, 3> >((offset + 16u)));
|
return matrix<float16_t, 3, 3>(sb.Load<vector<float16_t, 3> >((offset + 0u)), sb.Load<vector<float16_t, 3> >((offset + 8u)), sb.Load<vector<float16_t, 3> >((offset + 16u)));
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix<float16_t, 3, 4> tint_symbol_32(ByteAddressBuffer buffer, uint offset) {
|
matrix<float16_t, 3, 4> sb_load_30(uint offset) {
|
||||||
return matrix<float16_t, 3, 4>(buffer.Load<vector<float16_t, 4> >((offset + 0u)), buffer.Load<vector<float16_t, 4> >((offset + 8u)), buffer.Load<vector<float16_t, 4> >((offset + 16u)));
|
return matrix<float16_t, 3, 4>(sb.Load<vector<float16_t, 4> >((offset + 0u)), sb.Load<vector<float16_t, 4> >((offset + 8u)), sb.Load<vector<float16_t, 4> >((offset + 16u)));
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix<float16_t, 4, 2> tint_symbol_33(ByteAddressBuffer buffer, uint offset) {
|
matrix<float16_t, 4, 2> sb_load_31(uint offset) {
|
||||||
return matrix<float16_t, 4, 2>(buffer.Load<vector<float16_t, 2> >((offset + 0u)), buffer.Load<vector<float16_t, 2> >((offset + 4u)), buffer.Load<vector<float16_t, 2> >((offset + 8u)), buffer.Load<vector<float16_t, 2> >((offset + 12u)));
|
return matrix<float16_t, 4, 2>(sb.Load<vector<float16_t, 2> >((offset + 0u)), sb.Load<vector<float16_t, 2> >((offset + 4u)), sb.Load<vector<float16_t, 2> >((offset + 8u)), sb.Load<vector<float16_t, 2> >((offset + 12u)));
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix<float16_t, 4, 3> tint_symbol_34(ByteAddressBuffer buffer, uint offset) {
|
matrix<float16_t, 4, 3> sb_load_32(uint offset) {
|
||||||
return matrix<float16_t, 4, 3>(buffer.Load<vector<float16_t, 3> >((offset + 0u)), buffer.Load<vector<float16_t, 3> >((offset + 8u)), buffer.Load<vector<float16_t, 3> >((offset + 16u)), buffer.Load<vector<float16_t, 3> >((offset + 24u)));
|
return matrix<float16_t, 4, 3>(sb.Load<vector<float16_t, 3> >((offset + 0u)), sb.Load<vector<float16_t, 3> >((offset + 8u)), sb.Load<vector<float16_t, 3> >((offset + 16u)), sb.Load<vector<float16_t, 3> >((offset + 24u)));
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix<float16_t, 4, 4> tint_symbol_35(ByteAddressBuffer buffer, uint offset) {
|
matrix<float16_t, 4, 4> sb_load_33(uint offset) {
|
||||||
return matrix<float16_t, 4, 4>(buffer.Load<vector<float16_t, 4> >((offset + 0u)), buffer.Load<vector<float16_t, 4> >((offset + 8u)), buffer.Load<vector<float16_t, 4> >((offset + 16u)), buffer.Load<vector<float16_t, 4> >((offset + 24u)));
|
return matrix<float16_t, 4, 4>(sb.Load<vector<float16_t, 4> >((offset + 0u)), sb.Load<vector<float16_t, 4> >((offset + 8u)), sb.Load<vector<float16_t, 4> >((offset + 16u)), sb.Load<vector<float16_t, 4> >((offset + 24u)));
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef float3 tint_symbol_36_ret[2];
|
typedef float3 sb_load_34_ret[2];
|
||||||
tint_symbol_36_ret tint_symbol_36(ByteAddressBuffer buffer, uint offset) {
|
sb_load_34_ret sb_load_34(uint offset) {
|
||||||
float3 arr_1[2] = (float3[2])0;
|
float3 arr_1[2] = (float3[2])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 2u); i = (i + 1u)) {
|
for(uint i = 0u; (i < 2u); i = (i + 1u)) {
|
||||||
arr_1[i] = asfloat(buffer.Load3((offset + (i * 16u))));
|
arr_1[i] = asfloat(sb.Load3((offset + (i * 16u))));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return arr_1;
|
return arr_1;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef matrix<float16_t, 4, 2> tint_symbol_37_ret[2];
|
typedef matrix<float16_t, 4, 2> sb_load_35_ret[2];
|
||||||
tint_symbol_37_ret tint_symbol_37(ByteAddressBuffer buffer, uint offset) {
|
sb_load_35_ret sb_load_35(uint offset) {
|
||||||
matrix<float16_t, 4, 2> arr_2[2] = (matrix<float16_t, 4, 2>[2])0;
|
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)) {
|
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] = sb_load_31((offset + (i_1 * 16u)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return arr_2;
|
return arr_2;
|
||||||
|
@ -117,26 +117,26 @@ void main_inner(uint idx) {
|
||||||
const int4 vec4_i32 = asint(sb.Load4(((800u * idx) + 128u)));
|
const int4 vec4_i32 = asint(sb.Load4(((800u * idx) + 128u)));
|
||||||
const uint4 vec4_u32 = sb.Load4(((800u * idx) + 144u));
|
const uint4 vec4_u32 = sb.Load4(((800u * idx) + 144u));
|
||||||
const vector<float16_t, 4> vec4_f16 = sb.Load<vector<float16_t, 4> >(((800u * idx) + 160u));
|
const vector<float16_t, 4> vec4_f16 = sb.Load<vector<float16_t, 4> >(((800u * idx) + 160u));
|
||||||
const float2x2 mat2x2_f32 = tint_symbol_18(sb, ((800u * idx) + 168u));
|
const float2x2 mat2x2_f32 = sb_load_16(((800u * idx) + 168u));
|
||||||
const float2x3 mat2x3_f32 = tint_symbol_19(sb, ((800u * idx) + 192u));
|
const float2x3 mat2x3_f32 = sb_load_17(((800u * idx) + 192u));
|
||||||
const float2x4 mat2x4_f32 = tint_symbol_20(sb, ((800u * idx) + 224u));
|
const float2x4 mat2x4_f32 = sb_load_18(((800u * idx) + 224u));
|
||||||
const float3x2 mat3x2_f32 = tint_symbol_21(sb, ((800u * idx) + 256u));
|
const float3x2 mat3x2_f32 = sb_load_19(((800u * idx) + 256u));
|
||||||
const float3x3 mat3x3_f32 = tint_symbol_22(sb, ((800u * idx) + 288u));
|
const float3x3 mat3x3_f32 = sb_load_20(((800u * idx) + 288u));
|
||||||
const float3x4 mat3x4_f32 = tint_symbol_23(sb, ((800u * idx) + 336u));
|
const float3x4 mat3x4_f32 = sb_load_21(((800u * idx) + 336u));
|
||||||
const float4x2 mat4x2_f32 = tint_symbol_24(sb, ((800u * idx) + 384u));
|
const float4x2 mat4x2_f32 = sb_load_22(((800u * idx) + 384u));
|
||||||
const float4x3 mat4x3_f32 = tint_symbol_25(sb, ((800u * idx) + 416u));
|
const float4x3 mat4x3_f32 = sb_load_23(((800u * idx) + 416u));
|
||||||
const float4x4 mat4x4_f32 = tint_symbol_26(sb, ((800u * idx) + 480u));
|
const float4x4 mat4x4_f32 = sb_load_24(((800u * idx) + 480u));
|
||||||
const matrix<float16_t, 2, 2> mat2x2_f16 = tint_symbol_27(sb, ((800u * idx) + 544u));
|
const matrix<float16_t, 2, 2> mat2x2_f16 = sb_load_25(((800u * idx) + 544u));
|
||||||
const matrix<float16_t, 2, 3> mat2x3_f16 = tint_symbol_28(sb, ((800u * idx) + 552u));
|
const matrix<float16_t, 2, 3> mat2x3_f16 = sb_load_26(((800u * idx) + 552u));
|
||||||
const matrix<float16_t, 2, 4> mat2x4_f16 = tint_symbol_29(sb, ((800u * idx) + 568u));
|
const matrix<float16_t, 2, 4> mat2x4_f16 = sb_load_27(((800u * idx) + 568u));
|
||||||
const matrix<float16_t, 3, 2> mat3x2_f16 = tint_symbol_30(sb, ((800u * idx) + 584u));
|
const matrix<float16_t, 3, 2> mat3x2_f16 = sb_load_28(((800u * idx) + 584u));
|
||||||
const matrix<float16_t, 3, 3> mat3x3_f16 = tint_symbol_31(sb, ((800u * idx) + 600u));
|
const matrix<float16_t, 3, 3> mat3x3_f16 = sb_load_29(((800u * idx) + 600u));
|
||||||
const matrix<float16_t, 3, 4> mat3x4_f16 = tint_symbol_32(sb, ((800u * idx) + 624u));
|
const matrix<float16_t, 3, 4> mat3x4_f16 = sb_load_30(((800u * idx) + 624u));
|
||||||
const matrix<float16_t, 4, 2> mat4x2_f16 = tint_symbol_33(sb, ((800u * idx) + 648u));
|
const matrix<float16_t, 4, 2> mat4x2_f16 = sb_load_31(((800u * idx) + 648u));
|
||||||
const matrix<float16_t, 4, 3> mat4x3_f16 = tint_symbol_34(sb, ((800u * idx) + 664u));
|
const matrix<float16_t, 4, 3> mat4x3_f16 = sb_load_32(((800u * idx) + 664u));
|
||||||
const matrix<float16_t, 4, 4> mat4x4_f16 = tint_symbol_35(sb, ((800u * idx) + 696u));
|
const matrix<float16_t, 4, 4> mat4x4_f16 = sb_load_33(((800u * idx) + 696u));
|
||||||
const float3 arr2_vec3_f32[2] = tint_symbol_36(sb, ((800u * idx) + 736u));
|
const float3 arr2_vec3_f32[2] = sb_load_34(((800u * idx) + 736u));
|
||||||
const matrix<float16_t, 4, 2> arr2_mat4x2_f16[2] = tint_symbol_37(sb, ((800u * idx) + 768u));
|
const matrix<float16_t, 4, 2> arr2_mat4x2_f16[2] = sb_load_35(((800u * idx) + 768u));
|
||||||
}
|
}
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
|
@ -144,6 +144,3 @@ void main(tint_symbol_1 tint_symbol) {
|
||||||
main_inner(tint_symbol.idx);
|
main_inner(tint_symbol.idx);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
FXC validation failure:
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000018A2D5DB890(43,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
|
||||||
|
|
||||||
|
|
|
@ -6,128 +6,128 @@ struct tint_symbol_1 {
|
||||||
uint idx : SV_GroupIndex;
|
uint idx : SV_GroupIndex;
|
||||||
};
|
};
|
||||||
|
|
||||||
void tint_symbol_18(RWByteAddressBuffer buffer, uint offset, float2x2 value) {
|
void sb_store_16(uint offset, float2x2 value) {
|
||||||
buffer.Store2((offset + 0u), asuint(value[0u]));
|
sb.Store2((offset + 0u), asuint(value[0u]));
|
||||||
buffer.Store2((offset + 8u), asuint(value[1u]));
|
sb.Store2((offset + 8u), asuint(value[1u]));
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_19(RWByteAddressBuffer buffer, uint offset, float2x3 value) {
|
void sb_store_17(uint offset, float2x3 value) {
|
||||||
buffer.Store3((offset + 0u), asuint(value[0u]));
|
sb.Store3((offset + 0u), asuint(value[0u]));
|
||||||
buffer.Store3((offset + 16u), asuint(value[1u]));
|
sb.Store3((offset + 16u), asuint(value[1u]));
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_20(RWByteAddressBuffer buffer, uint offset, float2x4 value) {
|
void sb_store_18(uint offset, float2x4 value) {
|
||||||
buffer.Store4((offset + 0u), asuint(value[0u]));
|
sb.Store4((offset + 0u), asuint(value[0u]));
|
||||||
buffer.Store4((offset + 16u), asuint(value[1u]));
|
sb.Store4((offset + 16u), asuint(value[1u]));
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_21(RWByteAddressBuffer buffer, uint offset, float3x2 value) {
|
void sb_store_19(uint offset, float3x2 value) {
|
||||||
buffer.Store2((offset + 0u), asuint(value[0u]));
|
sb.Store2((offset + 0u), asuint(value[0u]));
|
||||||
buffer.Store2((offset + 8u), asuint(value[1u]));
|
sb.Store2((offset + 8u), asuint(value[1u]));
|
||||||
buffer.Store2((offset + 16u), asuint(value[2u]));
|
sb.Store2((offset + 16u), asuint(value[2u]));
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_22(RWByteAddressBuffer buffer, uint offset, float3x3 value) {
|
void sb_store_20(uint offset, float3x3 value) {
|
||||||
buffer.Store3((offset + 0u), asuint(value[0u]));
|
sb.Store3((offset + 0u), asuint(value[0u]));
|
||||||
buffer.Store3((offset + 16u), asuint(value[1u]));
|
sb.Store3((offset + 16u), asuint(value[1u]));
|
||||||
buffer.Store3((offset + 32u), asuint(value[2u]));
|
sb.Store3((offset + 32u), asuint(value[2u]));
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_23(RWByteAddressBuffer buffer, uint offset, float3x4 value) {
|
void sb_store_21(uint offset, float3x4 value) {
|
||||||
buffer.Store4((offset + 0u), asuint(value[0u]));
|
sb.Store4((offset + 0u), asuint(value[0u]));
|
||||||
buffer.Store4((offset + 16u), asuint(value[1u]));
|
sb.Store4((offset + 16u), asuint(value[1u]));
|
||||||
buffer.Store4((offset + 32u), asuint(value[2u]));
|
sb.Store4((offset + 32u), asuint(value[2u]));
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_24(RWByteAddressBuffer buffer, uint offset, float4x2 value) {
|
void sb_store_22(uint offset, float4x2 value) {
|
||||||
buffer.Store2((offset + 0u), asuint(value[0u]));
|
sb.Store2((offset + 0u), asuint(value[0u]));
|
||||||
buffer.Store2((offset + 8u), asuint(value[1u]));
|
sb.Store2((offset + 8u), asuint(value[1u]));
|
||||||
buffer.Store2((offset + 16u), asuint(value[2u]));
|
sb.Store2((offset + 16u), asuint(value[2u]));
|
||||||
buffer.Store2((offset + 24u), asuint(value[3u]));
|
sb.Store2((offset + 24u), asuint(value[3u]));
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_25(RWByteAddressBuffer buffer, uint offset, float4x3 value) {
|
void sb_store_23(uint offset, float4x3 value) {
|
||||||
buffer.Store3((offset + 0u), asuint(value[0u]));
|
sb.Store3((offset + 0u), asuint(value[0u]));
|
||||||
buffer.Store3((offset + 16u), asuint(value[1u]));
|
sb.Store3((offset + 16u), asuint(value[1u]));
|
||||||
buffer.Store3((offset + 32u), asuint(value[2u]));
|
sb.Store3((offset + 32u), asuint(value[2u]));
|
||||||
buffer.Store3((offset + 48u), asuint(value[3u]));
|
sb.Store3((offset + 48u), asuint(value[3u]));
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_26(RWByteAddressBuffer buffer, uint offset, float4x4 value) {
|
void sb_store_24(uint offset, float4x4 value) {
|
||||||
buffer.Store4((offset + 0u), asuint(value[0u]));
|
sb.Store4((offset + 0u), asuint(value[0u]));
|
||||||
buffer.Store4((offset + 16u), asuint(value[1u]));
|
sb.Store4((offset + 16u), asuint(value[1u]));
|
||||||
buffer.Store4((offset + 32u), asuint(value[2u]));
|
sb.Store4((offset + 32u), asuint(value[2u]));
|
||||||
buffer.Store4((offset + 48u), asuint(value[3u]));
|
sb.Store4((offset + 48u), asuint(value[3u]));
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_27(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 2, 2> value) {
|
void sb_store_25(uint offset, matrix<float16_t, 2, 2> value) {
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
sb.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
sb.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_28(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 2, 3> value) {
|
void sb_store_26(uint offset, matrix<float16_t, 2, 3> value) {
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
sb.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
sb.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_29(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 2, 4> value) {
|
void sb_store_27(uint offset, matrix<float16_t, 2, 4> value) {
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
sb.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
sb.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_30(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 3, 2> value) {
|
void sb_store_28(uint offset, matrix<float16_t, 3, 2> value) {
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
sb.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
sb.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 8u), value[2u]);
|
sb.Store<vector<float16_t, 2> >((offset + 8u), value[2u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_31(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 3, 3> value) {
|
void sb_store_29(uint offset, matrix<float16_t, 3, 3> value) {
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
sb.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
sb.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 16u), value[2u]);
|
sb.Store<vector<float16_t, 3> >((offset + 16u), value[2u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_32(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 3, 4> value) {
|
void sb_store_30(uint offset, matrix<float16_t, 3, 4> value) {
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
sb.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
sb.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 16u), value[2u]);
|
sb.Store<vector<float16_t, 4> >((offset + 16u), value[2u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_33(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 4, 2> value) {
|
void sb_store_31(uint offset, matrix<float16_t, 4, 2> value) {
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
sb.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
sb.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 8u), value[2u]);
|
sb.Store<vector<float16_t, 2> >((offset + 8u), value[2u]);
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 12u), value[3u]);
|
sb.Store<vector<float16_t, 2> >((offset + 12u), value[3u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_34(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 4, 3> value) {
|
void sb_store_32(uint offset, matrix<float16_t, 4, 3> value) {
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
sb.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
sb.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 16u), value[2u]);
|
sb.Store<vector<float16_t, 3> >((offset + 16u), value[2u]);
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 24u), value[3u]);
|
sb.Store<vector<float16_t, 3> >((offset + 24u), value[3u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_35(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 4, 4> value) {
|
void sb_store_33(uint offset, matrix<float16_t, 4, 4> value) {
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
sb.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
sb.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 16u), value[2u]);
|
sb.Store<vector<float16_t, 4> >((offset + 16u), value[2u]);
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 24u), value[3u]);
|
sb.Store<vector<float16_t, 4> >((offset + 24u), value[3u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_36(RWByteAddressBuffer buffer, uint offset, float3 value[2]) {
|
void sb_store_34(uint offset, float3 value[2]) {
|
||||||
float3 array[2] = value;
|
float3 array_1[2] = value;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 2u); i = (i + 1u)) {
|
for(uint i = 0u; (i < 2u); i = (i + 1u)) {
|
||||||
buffer.Store3((offset + (i * 16u)), asuint(array[i]));
|
sb.Store3((offset + (i * 16u)), asuint(array_1[i]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_37(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 4, 2> value[2]) {
|
void sb_store_35(uint offset, matrix<float16_t, 4, 2> value[2]) {
|
||||||
matrix<float16_t, 4, 2> array_1[2] = value;
|
matrix<float16_t, 4, 2> array_2[2] = value;
|
||||||
{
|
{
|
||||||
for(uint i_1 = 0u; (i_1 < 2u); i_1 = (i_1 + 1u)) {
|
for(uint i_1 = 0u; (i_1 < 2u); i_1 = (i_1 + 1u)) {
|
||||||
tint_symbol_33(buffer, (offset + (i_1 * 16u)), array_1[i_1]);
|
sb_store_31((offset + (i_1 * 16u)), array_2[i_1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -149,28 +149,28 @@ void main_inner(uint idx) {
|
||||||
sb.Store4(((800u * idx) + 128u), asuint((0).xxxx));
|
sb.Store4(((800u * idx) + 128u), asuint((0).xxxx));
|
||||||
sb.Store4(((800u * idx) + 144u), asuint((0u).xxxx));
|
sb.Store4(((800u * idx) + 144u), asuint((0u).xxxx));
|
||||||
sb.Store<vector<float16_t, 4> >(((800u * idx) + 160u), (float16_t(0.0h)).xxxx);
|
sb.Store<vector<float16_t, 4> >(((800u * idx) + 160u), (float16_t(0.0h)).xxxx);
|
||||||
tint_symbol_18(sb, ((800u * idx) + 168u), float2x2((0.0f).xx, (0.0f).xx));
|
sb_store_16(((800u * idx) + 168u), float2x2((0.0f).xx, (0.0f).xx));
|
||||||
tint_symbol_19(sb, ((800u * idx) + 192u), float2x3((0.0f).xxx, (0.0f).xxx));
|
sb_store_17(((800u * idx) + 192u), float2x3((0.0f).xxx, (0.0f).xxx));
|
||||||
tint_symbol_20(sb, ((800u * idx) + 224u), float2x4((0.0f).xxxx, (0.0f).xxxx));
|
sb_store_18(((800u * idx) + 224u), float2x4((0.0f).xxxx, (0.0f).xxxx));
|
||||||
tint_symbol_21(sb, ((800u * idx) + 256u), float3x2((0.0f).xx, (0.0f).xx, (0.0f).xx));
|
sb_store_19(((800u * idx) + 256u), float3x2((0.0f).xx, (0.0f).xx, (0.0f).xx));
|
||||||
tint_symbol_22(sb, ((800u * idx) + 288u), float3x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx));
|
sb_store_20(((800u * idx) + 288u), float3x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx));
|
||||||
tint_symbol_23(sb, ((800u * idx) + 336u), float3x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx));
|
sb_store_21(((800u * idx) + 336u), float3x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx));
|
||||||
tint_symbol_24(sb, ((800u * idx) + 384u), float4x2((0.0f).xx, (0.0f).xx, (0.0f).xx, (0.0f).xx));
|
sb_store_22(((800u * idx) + 384u), float4x2((0.0f).xx, (0.0f).xx, (0.0f).xx, (0.0f).xx));
|
||||||
tint_symbol_25(sb, ((800u * idx) + 416u), float4x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx, (0.0f).xxx));
|
sb_store_23(((800u * idx) + 416u), float4x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx, (0.0f).xxx));
|
||||||
tint_symbol_26(sb, ((800u * idx) + 480u), float4x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx));
|
sb_store_24(((800u * idx) + 480u), float4x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx));
|
||||||
tint_symbol_27(sb, ((800u * idx) + 544u), matrix<float16_t, 2, 2>((float16_t(0.0h)).xx, (float16_t(0.0h)).xx));
|
sb_store_25(((800u * idx) + 544u), matrix<float16_t, 2, 2>((float16_t(0.0h)).xx, (float16_t(0.0h)).xx));
|
||||||
tint_symbol_28(sb, ((800u * idx) + 552u), matrix<float16_t, 2, 3>((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx));
|
sb_store_26(((800u * idx) + 552u), matrix<float16_t, 2, 3>((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx));
|
||||||
tint_symbol_29(sb, ((800u * idx) + 568u), matrix<float16_t, 2, 4>((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx));
|
sb_store_27(((800u * idx) + 568u), matrix<float16_t, 2, 4>((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx));
|
||||||
tint_symbol_30(sb, ((800u * idx) + 584u), matrix<float16_t, 3, 2>((float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx));
|
sb_store_28(((800u * idx) + 584u), matrix<float16_t, 3, 2>((float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx));
|
||||||
tint_symbol_31(sb, ((800u * idx) + 600u), matrix<float16_t, 3, 3>((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx));
|
sb_store_29(((800u * idx) + 600u), matrix<float16_t, 3, 3>((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx));
|
||||||
tint_symbol_32(sb, ((800u * idx) + 624u), matrix<float16_t, 3, 4>((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx));
|
sb_store_30(((800u * idx) + 624u), matrix<float16_t, 3, 4>((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx));
|
||||||
tint_symbol_33(sb, ((800u * idx) + 648u), matrix<float16_t, 4, 2>((float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx));
|
sb_store_31(((800u * idx) + 648u), matrix<float16_t, 4, 2>((float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx));
|
||||||
tint_symbol_34(sb, ((800u * idx) + 664u), matrix<float16_t, 4, 3>((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx));
|
sb_store_32(((800u * idx) + 664u), matrix<float16_t, 4, 3>((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx));
|
||||||
tint_symbol_35(sb, ((800u * idx) + 696u), matrix<float16_t, 4, 4>((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx));
|
sb_store_33(((800u * idx) + 696u), matrix<float16_t, 4, 4>((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx));
|
||||||
const float3 tint_symbol_38[2] = (float3[2])0;
|
const float3 tint_symbol_2[2] = (float3[2])0;
|
||||||
tint_symbol_36(sb, ((800u * idx) + 736u), tint_symbol_38);
|
sb_store_34(((800u * idx) + 736u), tint_symbol_2);
|
||||||
const matrix<float16_t, 4, 2> tint_symbol_39[2] = (matrix<float16_t, 4, 2>[2])0;
|
const matrix<float16_t, 4, 2> tint_symbol_3[2] = (matrix<float16_t, 4, 2>[2])0;
|
||||||
tint_symbol_37(sb, ((800u * idx) + 768u), tint_symbol_39);
|
sb_store_35(((800u * idx) + 768u), tint_symbol_3);
|
||||||
}
|
}
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
|
@ -178,7 +178,3 @@ void main(tint_symbol_1 tint_symbol) {
|
||||||
main_inner(tint_symbol.idx);
|
main_inner(tint_symbol.idx);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
FXC validation failure:
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002B00914B0D0(61,69-77): error X3000: syntax error: unexpected token 'float16_t'
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002B00914B0D0(62,3-14): error X3018: invalid subscript 'Store'
|
|
||||||
|
|
||||||
|
|
|
@ -8,111 +8,111 @@ struct Inner {
|
||||||
|
|
||||||
ByteAddressBuffer sb : register(t0, space0);
|
ByteAddressBuffer sb : register(t0, space0);
|
||||||
|
|
||||||
float2x2 tint_symbol_16(ByteAddressBuffer buffer, uint offset) {
|
float2x2 sb_load_16(uint offset) {
|
||||||
return float2x2(asfloat(buffer.Load2((offset + 0u))), asfloat(buffer.Load2((offset + 8u))));
|
return float2x2(asfloat(sb.Load2((offset + 0u))), asfloat(sb.Load2((offset + 8u))));
|
||||||
}
|
}
|
||||||
|
|
||||||
float2x3 tint_symbol_17(ByteAddressBuffer buffer, uint offset) {
|
float2x3 sb_load_17(uint offset) {
|
||||||
return float2x3(asfloat(buffer.Load3((offset + 0u))), asfloat(buffer.Load3((offset + 16u))));
|
return float2x3(asfloat(sb.Load3((offset + 0u))), asfloat(sb.Load3((offset + 16u))));
|
||||||
}
|
}
|
||||||
|
|
||||||
float2x4 tint_symbol_18(ByteAddressBuffer buffer, uint offset) {
|
float2x4 sb_load_18(uint offset) {
|
||||||
return float2x4(asfloat(buffer.Load4((offset + 0u))), asfloat(buffer.Load4((offset + 16u))));
|
return float2x4(asfloat(sb.Load4((offset + 0u))), asfloat(sb.Load4((offset + 16u))));
|
||||||
}
|
}
|
||||||
|
|
||||||
float3x2 tint_symbol_19(ByteAddressBuffer buffer, uint offset) {
|
float3x2 sb_load_19(uint offset) {
|
||||||
return float3x2(asfloat(buffer.Load2((offset + 0u))), asfloat(buffer.Load2((offset + 8u))), asfloat(buffer.Load2((offset + 16u))));
|
return float3x2(asfloat(sb.Load2((offset + 0u))), asfloat(sb.Load2((offset + 8u))), asfloat(sb.Load2((offset + 16u))));
|
||||||
}
|
}
|
||||||
|
|
||||||
float3x3 tint_symbol_20(ByteAddressBuffer buffer, uint offset) {
|
float3x3 sb_load_20(uint offset) {
|
||||||
return float3x3(asfloat(buffer.Load3((offset + 0u))), asfloat(buffer.Load3((offset + 16u))), asfloat(buffer.Load3((offset + 32u))));
|
return float3x3(asfloat(sb.Load3((offset + 0u))), asfloat(sb.Load3((offset + 16u))), asfloat(sb.Load3((offset + 32u))));
|
||||||
}
|
}
|
||||||
|
|
||||||
float3x4 tint_symbol_21(ByteAddressBuffer buffer, uint offset) {
|
float3x4 sb_load_21(uint offset) {
|
||||||
return float3x4(asfloat(buffer.Load4((offset + 0u))), asfloat(buffer.Load4((offset + 16u))), asfloat(buffer.Load4((offset + 32u))));
|
return float3x4(asfloat(sb.Load4((offset + 0u))), asfloat(sb.Load4((offset + 16u))), asfloat(sb.Load4((offset + 32u))));
|
||||||
}
|
}
|
||||||
|
|
||||||
float4x2 tint_symbol_22(ByteAddressBuffer buffer, uint offset) {
|
float4x2 sb_load_22(uint offset) {
|
||||||
return float4x2(asfloat(buffer.Load2((offset + 0u))), asfloat(buffer.Load2((offset + 8u))), asfloat(buffer.Load2((offset + 16u))), asfloat(buffer.Load2((offset + 24u))));
|
return float4x2(asfloat(sb.Load2((offset + 0u))), asfloat(sb.Load2((offset + 8u))), asfloat(sb.Load2((offset + 16u))), asfloat(sb.Load2((offset + 24u))));
|
||||||
}
|
}
|
||||||
|
|
||||||
float4x3 tint_symbol_23(ByteAddressBuffer buffer, uint offset) {
|
float4x3 sb_load_23(uint offset) {
|
||||||
return float4x3(asfloat(buffer.Load3((offset + 0u))), asfloat(buffer.Load3((offset + 16u))), asfloat(buffer.Load3((offset + 32u))), asfloat(buffer.Load3((offset + 48u))));
|
return float4x3(asfloat(sb.Load3((offset + 0u))), asfloat(sb.Load3((offset + 16u))), asfloat(sb.Load3((offset + 32u))), asfloat(sb.Load3((offset + 48u))));
|
||||||
}
|
}
|
||||||
|
|
||||||
float4x4 tint_symbol_24(ByteAddressBuffer buffer, uint offset) {
|
float4x4 sb_load_24(uint offset) {
|
||||||
return float4x4(asfloat(buffer.Load4((offset + 0u))), asfloat(buffer.Load4((offset + 16u))), asfloat(buffer.Load4((offset + 32u))), asfloat(buffer.Load4((offset + 48u))));
|
return float4x4(asfloat(sb.Load4((offset + 0u))), asfloat(sb.Load4((offset + 16u))), asfloat(sb.Load4((offset + 32u))), asfloat(sb.Load4((offset + 48u))));
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix<float16_t, 2, 2> tint_symbol_25(ByteAddressBuffer buffer, uint offset) {
|
matrix<float16_t, 2, 2> sb_load_25(uint offset) {
|
||||||
return matrix<float16_t, 2, 2>(buffer.Load<vector<float16_t, 2> >((offset + 0u)), buffer.Load<vector<float16_t, 2> >((offset + 4u)));
|
return matrix<float16_t, 2, 2>(sb.Load<vector<float16_t, 2> >((offset + 0u)), sb.Load<vector<float16_t, 2> >((offset + 4u)));
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix<float16_t, 2, 3> tint_symbol_26(ByteAddressBuffer buffer, uint offset) {
|
matrix<float16_t, 2, 3> sb_load_26(uint offset) {
|
||||||
return matrix<float16_t, 2, 3>(buffer.Load<vector<float16_t, 3> >((offset + 0u)), buffer.Load<vector<float16_t, 3> >((offset + 8u)));
|
return matrix<float16_t, 2, 3>(sb.Load<vector<float16_t, 3> >((offset + 0u)), sb.Load<vector<float16_t, 3> >((offset + 8u)));
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix<float16_t, 2, 4> tint_symbol_27(ByteAddressBuffer buffer, uint offset) {
|
matrix<float16_t, 2, 4> sb_load_27(uint offset) {
|
||||||
return matrix<float16_t, 2, 4>(buffer.Load<vector<float16_t, 4> >((offset + 0u)), buffer.Load<vector<float16_t, 4> >((offset + 8u)));
|
return matrix<float16_t, 2, 4>(sb.Load<vector<float16_t, 4> >((offset + 0u)), sb.Load<vector<float16_t, 4> >((offset + 8u)));
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix<float16_t, 3, 2> tint_symbol_28(ByteAddressBuffer buffer, uint offset) {
|
matrix<float16_t, 3, 2> sb_load_28(uint offset) {
|
||||||
return matrix<float16_t, 3, 2>(buffer.Load<vector<float16_t, 2> >((offset + 0u)), buffer.Load<vector<float16_t, 2> >((offset + 4u)), buffer.Load<vector<float16_t, 2> >((offset + 8u)));
|
return matrix<float16_t, 3, 2>(sb.Load<vector<float16_t, 2> >((offset + 0u)), sb.Load<vector<float16_t, 2> >((offset + 4u)), sb.Load<vector<float16_t, 2> >((offset + 8u)));
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix<float16_t, 3, 3> tint_symbol_29(ByteAddressBuffer buffer, uint offset) {
|
matrix<float16_t, 3, 3> sb_load_29(uint offset) {
|
||||||
return matrix<float16_t, 3, 3>(buffer.Load<vector<float16_t, 3> >((offset + 0u)), buffer.Load<vector<float16_t, 3> >((offset + 8u)), buffer.Load<vector<float16_t, 3> >((offset + 16u)));
|
return matrix<float16_t, 3, 3>(sb.Load<vector<float16_t, 3> >((offset + 0u)), sb.Load<vector<float16_t, 3> >((offset + 8u)), sb.Load<vector<float16_t, 3> >((offset + 16u)));
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix<float16_t, 3, 4> tint_symbol_30(ByteAddressBuffer buffer, uint offset) {
|
matrix<float16_t, 3, 4> sb_load_30(uint offset) {
|
||||||
return matrix<float16_t, 3, 4>(buffer.Load<vector<float16_t, 4> >((offset + 0u)), buffer.Load<vector<float16_t, 4> >((offset + 8u)), buffer.Load<vector<float16_t, 4> >((offset + 16u)));
|
return matrix<float16_t, 3, 4>(sb.Load<vector<float16_t, 4> >((offset + 0u)), sb.Load<vector<float16_t, 4> >((offset + 8u)), sb.Load<vector<float16_t, 4> >((offset + 16u)));
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix<float16_t, 4, 2> tint_symbol_31(ByteAddressBuffer buffer, uint offset) {
|
matrix<float16_t, 4, 2> sb_load_31(uint offset) {
|
||||||
return matrix<float16_t, 4, 2>(buffer.Load<vector<float16_t, 2> >((offset + 0u)), buffer.Load<vector<float16_t, 2> >((offset + 4u)), buffer.Load<vector<float16_t, 2> >((offset + 8u)), buffer.Load<vector<float16_t, 2> >((offset + 12u)));
|
return matrix<float16_t, 4, 2>(sb.Load<vector<float16_t, 2> >((offset + 0u)), sb.Load<vector<float16_t, 2> >((offset + 4u)), sb.Load<vector<float16_t, 2> >((offset + 8u)), sb.Load<vector<float16_t, 2> >((offset + 12u)));
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix<float16_t, 4, 3> tint_symbol_32(ByteAddressBuffer buffer, uint offset) {
|
matrix<float16_t, 4, 3> sb_load_32(uint offset) {
|
||||||
return matrix<float16_t, 4, 3>(buffer.Load<vector<float16_t, 3> >((offset + 0u)), buffer.Load<vector<float16_t, 3> >((offset + 8u)), buffer.Load<vector<float16_t, 3> >((offset + 16u)), buffer.Load<vector<float16_t, 3> >((offset + 24u)));
|
return matrix<float16_t, 4, 3>(sb.Load<vector<float16_t, 3> >((offset + 0u)), sb.Load<vector<float16_t, 3> >((offset + 8u)), sb.Load<vector<float16_t, 3> >((offset + 16u)), sb.Load<vector<float16_t, 3> >((offset + 24u)));
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix<float16_t, 4, 4> tint_symbol_33(ByteAddressBuffer buffer, uint offset) {
|
matrix<float16_t, 4, 4> sb_load_33(uint offset) {
|
||||||
return matrix<float16_t, 4, 4>(buffer.Load<vector<float16_t, 4> >((offset + 0u)), buffer.Load<vector<float16_t, 4> >((offset + 8u)), buffer.Load<vector<float16_t, 4> >((offset + 16u)), buffer.Load<vector<float16_t, 4> >((offset + 24u)));
|
return matrix<float16_t, 4, 4>(sb.Load<vector<float16_t, 4> >((offset + 0u)), sb.Load<vector<float16_t, 4> >((offset + 8u)), sb.Load<vector<float16_t, 4> >((offset + 16u)), sb.Load<vector<float16_t, 4> >((offset + 24u)));
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef float3 tint_symbol_34_ret[2];
|
typedef float3 sb_load_34_ret[2];
|
||||||
tint_symbol_34_ret tint_symbol_34(ByteAddressBuffer buffer, uint offset) {
|
sb_load_34_ret sb_load_34(uint offset) {
|
||||||
float3 arr[2] = (float3[2])0;
|
float3 arr[2] = (float3[2])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 2u); i = (i + 1u)) {
|
for(uint i = 0u; (i < 2u); i = (i + 1u)) {
|
||||||
arr[i] = asfloat(buffer.Load3((offset + (i * 16u))));
|
arr[i] = asfloat(sb.Load3((offset + (i * 16u))));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return arr;
|
return arr;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef matrix<float16_t, 4, 2> tint_symbol_35_ret[2];
|
typedef matrix<float16_t, 4, 2> sb_load_35_ret[2];
|
||||||
tint_symbol_35_ret tint_symbol_35(ByteAddressBuffer buffer, uint offset) {
|
sb_load_35_ret sb_load_35(uint offset) {
|
||||||
matrix<float16_t, 4, 2> arr_1[2] = (matrix<float16_t, 4, 2>[2])0;
|
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)) {
|
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] = sb_load_31((offset + (i_1 * 16u)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return arr_1;
|
return arr_1;
|
||||||
}
|
}
|
||||||
|
|
||||||
Inner tint_symbol_36(ByteAddressBuffer buffer, uint offset) {
|
Inner sb_load_36(uint offset) {
|
||||||
const Inner tint_symbol_38 = {asint(buffer.Load((offset + 0u))), asfloat(buffer.Load((offset + 4u))), buffer.Load<float16_t>((offset + 8u))};
|
const Inner tint_symbol = {asint(sb.Load((offset + 0u))), asfloat(sb.Load((offset + 4u))), sb.Load<float16_t>((offset + 8u))};
|
||||||
return tint_symbol_38;
|
return tint_symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef Inner tint_symbol_37_ret[4];
|
typedef Inner sb_load_37_ret[4];
|
||||||
tint_symbol_37_ret tint_symbol_37(ByteAddressBuffer buffer, uint offset) {
|
sb_load_37_ret sb_load_37(uint offset) {
|
||||||
Inner arr_2[4] = (Inner[4])0;
|
Inner arr_2[4] = (Inner[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_2 = 0u; (i_2 < 4u); i_2 = (i_2 + 1u)) {
|
for(uint i_2 = 0u; (i_2 < 4u); i_2 = (i_2 + 1u)) {
|
||||||
arr_2[i_2] = tint_symbol_36(buffer, (offset + (i_2 * 12u)));
|
arr_2[i_2] = sb_load_36((offset + (i_2 * 12u)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return arr_2;
|
return arr_2;
|
||||||
|
@ -136,30 +136,27 @@ void main() {
|
||||||
const int4 vec4_i32 = asint(sb.Load4(128u));
|
const int4 vec4_i32 = asint(sb.Load4(128u));
|
||||||
const uint4 vec4_u32 = sb.Load4(144u);
|
const uint4 vec4_u32 = sb.Load4(144u);
|
||||||
const vector<float16_t, 4> vec4_f16 = sb.Load<vector<float16_t, 4> >(160u);
|
const vector<float16_t, 4> vec4_f16 = sb.Load<vector<float16_t, 4> >(160u);
|
||||||
const float2x2 mat2x2_f32 = tint_symbol_16(sb, 168u);
|
const float2x2 mat2x2_f32 = sb_load_16(168u);
|
||||||
const float2x3 mat2x3_f32 = tint_symbol_17(sb, 192u);
|
const float2x3 mat2x3_f32 = sb_load_17(192u);
|
||||||
const float2x4 mat2x4_f32 = tint_symbol_18(sb, 224u);
|
const float2x4 mat2x4_f32 = sb_load_18(224u);
|
||||||
const float3x2 mat3x2_f32 = tint_symbol_19(sb, 256u);
|
const float3x2 mat3x2_f32 = sb_load_19(256u);
|
||||||
const float3x3 mat3x3_f32 = tint_symbol_20(sb, 288u);
|
const float3x3 mat3x3_f32 = sb_load_20(288u);
|
||||||
const float3x4 mat3x4_f32 = tint_symbol_21(sb, 336u);
|
const float3x4 mat3x4_f32 = sb_load_21(336u);
|
||||||
const float4x2 mat4x2_f32 = tint_symbol_22(sb, 384u);
|
const float4x2 mat4x2_f32 = sb_load_22(384u);
|
||||||
const float4x3 mat4x3_f32 = tint_symbol_23(sb, 416u);
|
const float4x3 mat4x3_f32 = sb_load_23(416u);
|
||||||
const float4x4 mat4x4_f32 = tint_symbol_24(sb, 480u);
|
const float4x4 mat4x4_f32 = sb_load_24(480u);
|
||||||
const matrix<float16_t, 2, 2> mat2x2_f16 = tint_symbol_25(sb, 544u);
|
const matrix<float16_t, 2, 2> mat2x2_f16 = sb_load_25(544u);
|
||||||
const matrix<float16_t, 2, 3> mat2x3_f16 = tint_symbol_26(sb, 552u);
|
const matrix<float16_t, 2, 3> mat2x3_f16 = sb_load_26(552u);
|
||||||
const matrix<float16_t, 2, 4> mat2x4_f16 = tint_symbol_27(sb, 568u);
|
const matrix<float16_t, 2, 4> mat2x4_f16 = sb_load_27(568u);
|
||||||
const matrix<float16_t, 3, 2> mat3x2_f16 = tint_symbol_28(sb, 584u);
|
const matrix<float16_t, 3, 2> mat3x2_f16 = sb_load_28(584u);
|
||||||
const matrix<float16_t, 3, 3> mat3x3_f16 = tint_symbol_29(sb, 600u);
|
const matrix<float16_t, 3, 3> mat3x3_f16 = sb_load_29(600u);
|
||||||
const matrix<float16_t, 3, 4> mat3x4_f16 = tint_symbol_30(sb, 624u);
|
const matrix<float16_t, 3, 4> mat3x4_f16 = sb_load_30(624u);
|
||||||
const matrix<float16_t, 4, 2> mat4x2_f16 = tint_symbol_31(sb, 648u);
|
const matrix<float16_t, 4, 2> mat4x2_f16 = sb_load_31(648u);
|
||||||
const matrix<float16_t, 4, 3> mat4x3_f16 = tint_symbol_32(sb, 664u);
|
const matrix<float16_t, 4, 3> mat4x3_f16 = sb_load_32(664u);
|
||||||
const matrix<float16_t, 4, 4> mat4x4_f16 = tint_symbol_33(sb, 696u);
|
const matrix<float16_t, 4, 4> mat4x4_f16 = sb_load_33(696u);
|
||||||
const float3 arr2_vec3_f32[2] = tint_symbol_34(sb, 736u);
|
const float3 arr2_vec3_f32[2] = sb_load_34(736u);
|
||||||
const matrix<float16_t, 4, 2> arr2_mat4x2_f16[2] = tint_symbol_35(sb, 768u);
|
const matrix<float16_t, 4, 2> arr2_mat4x2_f16[2] = sb_load_35(768u);
|
||||||
const Inner struct_inner = tint_symbol_36(sb, 800u);
|
const Inner struct_inner = sb_load_36(800u);
|
||||||
const Inner array_struct_inner[4] = tint_symbol_37(sb, 812u);
|
const Inner array_struct_inner[4] = sb_load_37(812u);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
FXC validation failure:
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002348228CC10(4,3-11): error X3000: unrecognized identifier 'float16_t'
|
|
||||||
|
|
||||||
|
|
|
@ -8,143 +8,143 @@ struct Inner {
|
||||||
|
|
||||||
RWByteAddressBuffer sb : register(u0, space0);
|
RWByteAddressBuffer sb : register(u0, space0);
|
||||||
|
|
||||||
void tint_symbol_16(RWByteAddressBuffer buffer, uint offset, float2x2 value) {
|
void sb_store_16(uint offset, float2x2 value) {
|
||||||
buffer.Store2((offset + 0u), asuint(value[0u]));
|
sb.Store2((offset + 0u), asuint(value[0u]));
|
||||||
buffer.Store2((offset + 8u), asuint(value[1u]));
|
sb.Store2((offset + 8u), asuint(value[1u]));
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_17(RWByteAddressBuffer buffer, uint offset, float2x3 value) {
|
void sb_store_17(uint offset, float2x3 value) {
|
||||||
buffer.Store3((offset + 0u), asuint(value[0u]));
|
sb.Store3((offset + 0u), asuint(value[0u]));
|
||||||
buffer.Store3((offset + 16u), asuint(value[1u]));
|
sb.Store3((offset + 16u), asuint(value[1u]));
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_18(RWByteAddressBuffer buffer, uint offset, float2x4 value) {
|
void sb_store_18(uint offset, float2x4 value) {
|
||||||
buffer.Store4((offset + 0u), asuint(value[0u]));
|
sb.Store4((offset + 0u), asuint(value[0u]));
|
||||||
buffer.Store4((offset + 16u), asuint(value[1u]));
|
sb.Store4((offset + 16u), asuint(value[1u]));
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_19(RWByteAddressBuffer buffer, uint offset, float3x2 value) {
|
void sb_store_19(uint offset, float3x2 value) {
|
||||||
buffer.Store2((offset + 0u), asuint(value[0u]));
|
sb.Store2((offset + 0u), asuint(value[0u]));
|
||||||
buffer.Store2((offset + 8u), asuint(value[1u]));
|
sb.Store2((offset + 8u), asuint(value[1u]));
|
||||||
buffer.Store2((offset + 16u), asuint(value[2u]));
|
sb.Store2((offset + 16u), asuint(value[2u]));
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_20(RWByteAddressBuffer buffer, uint offset, float3x3 value) {
|
void sb_store_20(uint offset, float3x3 value) {
|
||||||
buffer.Store3((offset + 0u), asuint(value[0u]));
|
sb.Store3((offset + 0u), asuint(value[0u]));
|
||||||
buffer.Store3((offset + 16u), asuint(value[1u]));
|
sb.Store3((offset + 16u), asuint(value[1u]));
|
||||||
buffer.Store3((offset + 32u), asuint(value[2u]));
|
sb.Store3((offset + 32u), asuint(value[2u]));
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_21(RWByteAddressBuffer buffer, uint offset, float3x4 value) {
|
void sb_store_21(uint offset, float3x4 value) {
|
||||||
buffer.Store4((offset + 0u), asuint(value[0u]));
|
sb.Store4((offset + 0u), asuint(value[0u]));
|
||||||
buffer.Store4((offset + 16u), asuint(value[1u]));
|
sb.Store4((offset + 16u), asuint(value[1u]));
|
||||||
buffer.Store4((offset + 32u), asuint(value[2u]));
|
sb.Store4((offset + 32u), asuint(value[2u]));
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_22(RWByteAddressBuffer buffer, uint offset, float4x2 value) {
|
void sb_store_22(uint offset, float4x2 value) {
|
||||||
buffer.Store2((offset + 0u), asuint(value[0u]));
|
sb.Store2((offset + 0u), asuint(value[0u]));
|
||||||
buffer.Store2((offset + 8u), asuint(value[1u]));
|
sb.Store2((offset + 8u), asuint(value[1u]));
|
||||||
buffer.Store2((offset + 16u), asuint(value[2u]));
|
sb.Store2((offset + 16u), asuint(value[2u]));
|
||||||
buffer.Store2((offset + 24u), asuint(value[3u]));
|
sb.Store2((offset + 24u), asuint(value[3u]));
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_23(RWByteAddressBuffer buffer, uint offset, float4x3 value) {
|
void sb_store_23(uint offset, float4x3 value) {
|
||||||
buffer.Store3((offset + 0u), asuint(value[0u]));
|
sb.Store3((offset + 0u), asuint(value[0u]));
|
||||||
buffer.Store3((offset + 16u), asuint(value[1u]));
|
sb.Store3((offset + 16u), asuint(value[1u]));
|
||||||
buffer.Store3((offset + 32u), asuint(value[2u]));
|
sb.Store3((offset + 32u), asuint(value[2u]));
|
||||||
buffer.Store3((offset + 48u), asuint(value[3u]));
|
sb.Store3((offset + 48u), asuint(value[3u]));
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_24(RWByteAddressBuffer buffer, uint offset, float4x4 value) {
|
void sb_store_24(uint offset, float4x4 value) {
|
||||||
buffer.Store4((offset + 0u), asuint(value[0u]));
|
sb.Store4((offset + 0u), asuint(value[0u]));
|
||||||
buffer.Store4((offset + 16u), asuint(value[1u]));
|
sb.Store4((offset + 16u), asuint(value[1u]));
|
||||||
buffer.Store4((offset + 32u), asuint(value[2u]));
|
sb.Store4((offset + 32u), asuint(value[2u]));
|
||||||
buffer.Store4((offset + 48u), asuint(value[3u]));
|
sb.Store4((offset + 48u), asuint(value[3u]));
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_25(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 2, 2> value) {
|
void sb_store_25(uint offset, matrix<float16_t, 2, 2> value) {
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
sb.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
sb.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_26(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 2, 3> value) {
|
void sb_store_26(uint offset, matrix<float16_t, 2, 3> value) {
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
sb.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
sb.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_27(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 2, 4> value) {
|
void sb_store_27(uint offset, matrix<float16_t, 2, 4> value) {
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
sb.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
sb.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_28(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 3, 2> value) {
|
void sb_store_28(uint offset, matrix<float16_t, 3, 2> value) {
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
sb.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
sb.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 8u), value[2u]);
|
sb.Store<vector<float16_t, 2> >((offset + 8u), value[2u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_29(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 3, 3> value) {
|
void sb_store_29(uint offset, matrix<float16_t, 3, 3> value) {
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
sb.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
sb.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 16u), value[2u]);
|
sb.Store<vector<float16_t, 3> >((offset + 16u), value[2u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_30(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 3, 4> value) {
|
void sb_store_30(uint offset, matrix<float16_t, 3, 4> value) {
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
sb.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
sb.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 16u), value[2u]);
|
sb.Store<vector<float16_t, 4> >((offset + 16u), value[2u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_31(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 4, 2> value) {
|
void sb_store_31(uint offset, matrix<float16_t, 4, 2> value) {
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
sb.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
sb.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 8u), value[2u]);
|
sb.Store<vector<float16_t, 2> >((offset + 8u), value[2u]);
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 12u), value[3u]);
|
sb.Store<vector<float16_t, 2> >((offset + 12u), value[3u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_32(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 4, 3> value) {
|
void sb_store_32(uint offset, matrix<float16_t, 4, 3> value) {
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
sb.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
sb.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 16u), value[2u]);
|
sb.Store<vector<float16_t, 3> >((offset + 16u), value[2u]);
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 24u), value[3u]);
|
sb.Store<vector<float16_t, 3> >((offset + 24u), value[3u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_33(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 4, 4> value) {
|
void sb_store_33(uint offset, matrix<float16_t, 4, 4> value) {
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
sb.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
sb.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 16u), value[2u]);
|
sb.Store<vector<float16_t, 4> >((offset + 16u), value[2u]);
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 24u), value[3u]);
|
sb.Store<vector<float16_t, 4> >((offset + 24u), value[3u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_34(RWByteAddressBuffer buffer, uint offset, float3 value[2]) {
|
void sb_store_34(uint offset, float3 value[2]) {
|
||||||
float3 array[2] = value;
|
float3 array_1[2] = value;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 2u); i = (i + 1u)) {
|
for(uint i = 0u; (i < 2u); i = (i + 1u)) {
|
||||||
buffer.Store3((offset + (i * 16u)), asuint(array[i]));
|
sb.Store3((offset + (i * 16u)), asuint(array_1[i]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_35(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 4, 2> value[2]) {
|
void sb_store_35(uint offset, matrix<float16_t, 4, 2> value[2]) {
|
||||||
matrix<float16_t, 4, 2> array_1[2] = value;
|
matrix<float16_t, 4, 2> array_2[2] = value;
|
||||||
{
|
{
|
||||||
for(uint i_1 = 0u; (i_1 < 2u); i_1 = (i_1 + 1u)) {
|
for(uint i_1 = 0u; (i_1 < 2u); i_1 = (i_1 + 1u)) {
|
||||||
tint_symbol_31(buffer, (offset + (i_1 * 16u)), array_1[i_1]);
|
sb_store_31((offset + (i_1 * 16u)), array_2[i_1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_36(RWByteAddressBuffer buffer, uint offset, Inner value) {
|
void sb_store_36(uint offset, Inner value) {
|
||||||
buffer.Store((offset + 0u), asuint(value.scalar_i32));
|
sb.Store((offset + 0u), asuint(value.scalar_i32));
|
||||||
buffer.Store((offset + 4u), asuint(value.scalar_f32));
|
sb.Store((offset + 4u), asuint(value.scalar_f32));
|
||||||
buffer.Store<float16_t>((offset + 8u), value.scalar_f16);
|
sb.Store<float16_t>((offset + 8u), value.scalar_f16);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_37(RWByteAddressBuffer buffer, uint offset, Inner value[4]) {
|
void sb_store_37(uint offset, Inner value[4]) {
|
||||||
Inner array_2[4] = value;
|
Inner array_3[4] = value;
|
||||||
{
|
{
|
||||||
for(uint i_2 = 0u; (i_2 < 4u); i_2 = (i_2 + 1u)) {
|
for(uint i_2 = 0u; (i_2 < 4u); i_2 = (i_2 + 1u)) {
|
||||||
tint_symbol_36(buffer, (offset + (i_2 * 12u)), array_2[i_2]);
|
sb_store_36((offset + (i_2 * 12u)), array_3[i_2]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -167,34 +167,31 @@ void main() {
|
||||||
sb.Store4(128u, asuint((0).xxxx));
|
sb.Store4(128u, asuint((0).xxxx));
|
||||||
sb.Store4(144u, asuint((0u).xxxx));
|
sb.Store4(144u, asuint((0u).xxxx));
|
||||||
sb.Store<vector<float16_t, 4> >(160u, (float16_t(0.0h)).xxxx);
|
sb.Store<vector<float16_t, 4> >(160u, (float16_t(0.0h)).xxxx);
|
||||||
tint_symbol_16(sb, 168u, float2x2((0.0f).xx, (0.0f).xx));
|
sb_store_16(168u, float2x2((0.0f).xx, (0.0f).xx));
|
||||||
tint_symbol_17(sb, 192u, float2x3((0.0f).xxx, (0.0f).xxx));
|
sb_store_17(192u, float2x3((0.0f).xxx, (0.0f).xxx));
|
||||||
tint_symbol_18(sb, 224u, float2x4((0.0f).xxxx, (0.0f).xxxx));
|
sb_store_18(224u, float2x4((0.0f).xxxx, (0.0f).xxxx));
|
||||||
tint_symbol_19(sb, 256u, float3x2((0.0f).xx, (0.0f).xx, (0.0f).xx));
|
sb_store_19(256u, float3x2((0.0f).xx, (0.0f).xx, (0.0f).xx));
|
||||||
tint_symbol_20(sb, 288u, float3x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx));
|
sb_store_20(288u, float3x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx));
|
||||||
tint_symbol_21(sb, 336u, float3x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx));
|
sb_store_21(336u, float3x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx));
|
||||||
tint_symbol_22(sb, 384u, float4x2((0.0f).xx, (0.0f).xx, (0.0f).xx, (0.0f).xx));
|
sb_store_22(384u, float4x2((0.0f).xx, (0.0f).xx, (0.0f).xx, (0.0f).xx));
|
||||||
tint_symbol_23(sb, 416u, float4x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx, (0.0f).xxx));
|
sb_store_23(416u, float4x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx, (0.0f).xxx));
|
||||||
tint_symbol_24(sb, 480u, float4x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx));
|
sb_store_24(480u, float4x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx));
|
||||||
tint_symbol_25(sb, 544u, matrix<float16_t, 2, 2>((float16_t(0.0h)).xx, (float16_t(0.0h)).xx));
|
sb_store_25(544u, matrix<float16_t, 2, 2>((float16_t(0.0h)).xx, (float16_t(0.0h)).xx));
|
||||||
tint_symbol_26(sb, 552u, matrix<float16_t, 2, 3>((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx));
|
sb_store_26(552u, matrix<float16_t, 2, 3>((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx));
|
||||||
tint_symbol_27(sb, 568u, matrix<float16_t, 2, 4>((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx));
|
sb_store_27(568u, matrix<float16_t, 2, 4>((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx));
|
||||||
tint_symbol_28(sb, 584u, matrix<float16_t, 3, 2>((float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx));
|
sb_store_28(584u, matrix<float16_t, 3, 2>((float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx));
|
||||||
tint_symbol_29(sb, 600u, matrix<float16_t, 3, 3>((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx));
|
sb_store_29(600u, matrix<float16_t, 3, 3>((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx));
|
||||||
tint_symbol_30(sb, 624u, matrix<float16_t, 3, 4>((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx));
|
sb_store_30(624u, matrix<float16_t, 3, 4>((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx));
|
||||||
tint_symbol_31(sb, 648u, matrix<float16_t, 4, 2>((float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx));
|
sb_store_31(648u, matrix<float16_t, 4, 2>((float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx));
|
||||||
tint_symbol_32(sb, 664u, matrix<float16_t, 4, 3>((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx));
|
sb_store_32(664u, matrix<float16_t, 4, 3>((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx));
|
||||||
tint_symbol_33(sb, 696u, matrix<float16_t, 4, 4>((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx));
|
sb_store_33(696u, matrix<float16_t, 4, 4>((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx));
|
||||||
const float3 tint_symbol_38[2] = (float3[2])0;
|
const float3 tint_symbol[2] = (float3[2])0;
|
||||||
tint_symbol_34(sb, 736u, tint_symbol_38);
|
sb_store_34(736u, tint_symbol);
|
||||||
const matrix<float16_t, 4, 2> tint_symbol_39[2] = (matrix<float16_t, 4, 2>[2])0;
|
const matrix<float16_t, 4, 2> tint_symbol_1[2] = (matrix<float16_t, 4, 2>[2])0;
|
||||||
tint_symbol_35(sb, 768u, tint_symbol_39);
|
sb_store_35(768u, tint_symbol_1);
|
||||||
const Inner tint_symbol_40 = (Inner)0;
|
const Inner tint_symbol_2 = (Inner)0;
|
||||||
tint_symbol_36(sb, 800u, tint_symbol_40);
|
sb_store_36(800u, tint_symbol_2);
|
||||||
const Inner tint_symbol_41[4] = (Inner[4])0;
|
const Inner tint_symbol_3[4] = (Inner[4])0;
|
||||||
tint_symbol_37(sb, 812u, tint_symbol_41);
|
sb_store_37(812u, tint_symbol_3);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
FXC validation failure:
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002416606A770(4,3-11): error X3000: unrecognized identifier 'float16_t'
|
|
||||||
|
|
||||||
|
|
|
@ -3,21 +3,21 @@ SKIP: FAILED
|
||||||
ByteAddressBuffer tint_symbol : register(t0, space0);
|
ByteAddressBuffer tint_symbol : register(t0, space0);
|
||||||
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
|
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
|
||||||
|
|
||||||
void tint_symbol_2(RWByteAddressBuffer buffer, uint offset, float16_t value[4]) {
|
void tint_symbol_1_store(uint offset, float16_t value[4]) {
|
||||||
float16_t array[4] = value;
|
float16_t array_1[4] = value;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||||
buffer.Store<float16_t>((offset + (i * 2u)), array[i]);
|
tint_symbol_1.Store<float16_t>((offset + (i * 2u)), array_1[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef float16_t tint_symbol_4_ret[4];
|
typedef float16_t tint_symbol_load_ret[4];
|
||||||
tint_symbol_4_ret tint_symbol_4(ByteAddressBuffer buffer, uint offset) {
|
tint_symbol_load_ret tint_symbol_load(uint offset) {
|
||||||
float16_t arr[4] = (float16_t[4])0;
|
float16_t arr[4] = (float16_t[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
||||||
arr[i_1] = buffer.Load<float16_t>((offset + (i_1 * 2u)));
|
arr[i_1] = tint_symbol.Load<float16_t>((offset + (i_1 * 2u)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return arr;
|
return arr;
|
||||||
|
@ -25,9 +25,6 @@ tint_symbol_4_ret tint_symbol_4(ByteAddressBuffer buffer, uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void main() {
|
void main() {
|
||||||
tint_symbol_2(tint_symbol_1, 0u, tint_symbol_4(tint_symbol, 0u));
|
tint_symbol_1_store(0u, tint_symbol_load(0u));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
FXC validation failure:
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000026D14358AA0(4,61-69): error X3000: unrecognized identifier 'float16_t'
|
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,3 @@ void main() {
|
||||||
tint_symbol_1.Store<float16_t>(0u, tint_symbol.Load<float16_t>(0u));
|
tint_symbol_1.Store<float16_t>(0u, tint_symbol.Load<float16_t>(0u));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
FXC validation failure:
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000020E4EF78E80(6,3-21): error X3018: invalid subscript 'Store'
|
|
||||||
|
|
||||||
|
|
|
@ -3,21 +3,17 @@ SKIP: FAILED
|
||||||
ByteAddressBuffer tint_symbol : register(t0, space0);
|
ByteAddressBuffer tint_symbol : register(t0, space0);
|
||||||
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
|
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
|
||||||
|
|
||||||
void tint_symbol_2(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 2, 2> value) {
|
void tint_symbol_1_store(uint offset, matrix<float16_t, 2, 2> value) {
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
tint_symbol_1.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
tint_symbol_1.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix<float16_t, 2, 2> tint_symbol_4(ByteAddressBuffer buffer, uint offset) {
|
matrix<float16_t, 2, 2> tint_symbol_load(uint offset) {
|
||||||
return matrix<float16_t, 2, 2>(buffer.Load<vector<float16_t, 2> >((offset + 0u)), buffer.Load<vector<float16_t, 2> >((offset + 4u)));
|
return matrix<float16_t, 2, 2>(tint_symbol.Load<vector<float16_t, 2> >((offset + 0u)), tint_symbol.Load<vector<float16_t, 2> >((offset + 4u)));
|
||||||
}
|
}
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void main() {
|
void main() {
|
||||||
tint_symbol_2(tint_symbol_1, 0u, tint_symbol_4(tint_symbol, 0u));
|
tint_symbol_1_store(0u, tint_symbol_load(0u));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
FXC validation failure:
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001C807B6A460(4,68-76): error X3000: syntax error: unexpected token 'float16_t'
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001C807B6A460(5,3-14): error X3018: invalid subscript 'Store'
|
|
||||||
|
|
||||||
|
|
|
@ -3,21 +3,17 @@ SKIP: FAILED
|
||||||
ByteAddressBuffer tint_symbol : register(t0, space0);
|
ByteAddressBuffer tint_symbol : register(t0, space0);
|
||||||
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
|
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
|
||||||
|
|
||||||
void tint_symbol_2(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 2, 3> value) {
|
void tint_symbol_1_store(uint offset, matrix<float16_t, 2, 3> value) {
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
tint_symbol_1.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
tint_symbol_1.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix<float16_t, 2, 3> tint_symbol_4(ByteAddressBuffer buffer, uint offset) {
|
matrix<float16_t, 2, 3> tint_symbol_load(uint offset) {
|
||||||
return matrix<float16_t, 2, 3>(buffer.Load<vector<float16_t, 3> >((offset + 0u)), buffer.Load<vector<float16_t, 3> >((offset + 8u)));
|
return matrix<float16_t, 2, 3>(tint_symbol.Load<vector<float16_t, 3> >((offset + 0u)), tint_symbol.Load<vector<float16_t, 3> >((offset + 8u)));
|
||||||
}
|
}
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void main() {
|
void main() {
|
||||||
tint_symbol_2(tint_symbol_1, 0u, tint_symbol_4(tint_symbol, 0u));
|
tint_symbol_1_store(0u, tint_symbol_load(0u));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
FXC validation failure:
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000020545EDA130(4,68-76): error X3000: syntax error: unexpected token 'float16_t'
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000020545EDA130(5,3-14): error X3018: invalid subscript 'Store'
|
|
||||||
|
|
||||||
|
|
|
@ -3,21 +3,17 @@ SKIP: FAILED
|
||||||
ByteAddressBuffer tint_symbol : register(t0, space0);
|
ByteAddressBuffer tint_symbol : register(t0, space0);
|
||||||
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
|
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
|
||||||
|
|
||||||
void tint_symbol_2(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 2, 4> value) {
|
void tint_symbol_1_store(uint offset, matrix<float16_t, 2, 4> value) {
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
tint_symbol_1.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
tint_symbol_1.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix<float16_t, 2, 4> tint_symbol_4(ByteAddressBuffer buffer, uint offset) {
|
matrix<float16_t, 2, 4> tint_symbol_load(uint offset) {
|
||||||
return matrix<float16_t, 2, 4>(buffer.Load<vector<float16_t, 4> >((offset + 0u)), buffer.Load<vector<float16_t, 4> >((offset + 8u)));
|
return matrix<float16_t, 2, 4>(tint_symbol.Load<vector<float16_t, 4> >((offset + 0u)), tint_symbol.Load<vector<float16_t, 4> >((offset + 8u)));
|
||||||
}
|
}
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void main() {
|
void main() {
|
||||||
tint_symbol_2(tint_symbol_1, 0u, tint_symbol_4(tint_symbol, 0u));
|
tint_symbol_1_store(0u, tint_symbol_load(0u));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
FXC validation failure:
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001A3CD399A80(4,68-76): error X3000: syntax error: unexpected token 'float16_t'
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001A3CD399A80(5,3-14): error X3018: invalid subscript 'Store'
|
|
||||||
|
|
||||||
|
|
|
@ -3,22 +3,18 @@ SKIP: FAILED
|
||||||
ByteAddressBuffer tint_symbol : register(t0, space0);
|
ByteAddressBuffer tint_symbol : register(t0, space0);
|
||||||
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
|
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
|
||||||
|
|
||||||
void tint_symbol_2(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 3, 2> value) {
|
void tint_symbol_1_store(uint offset, matrix<float16_t, 3, 2> value) {
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
tint_symbol_1.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
tint_symbol_1.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 8u), value[2u]);
|
tint_symbol_1.Store<vector<float16_t, 2> >((offset + 8u), value[2u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix<float16_t, 3, 2> tint_symbol_4(ByteAddressBuffer buffer, uint offset) {
|
matrix<float16_t, 3, 2> tint_symbol_load(uint offset) {
|
||||||
return matrix<float16_t, 3, 2>(buffer.Load<vector<float16_t, 2> >((offset + 0u)), buffer.Load<vector<float16_t, 2> >((offset + 4u)), buffer.Load<vector<float16_t, 2> >((offset + 8u)));
|
return matrix<float16_t, 3, 2>(tint_symbol.Load<vector<float16_t, 2> >((offset + 0u)), tint_symbol.Load<vector<float16_t, 2> >((offset + 4u)), tint_symbol.Load<vector<float16_t, 2> >((offset + 8u)));
|
||||||
}
|
}
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void main() {
|
void main() {
|
||||||
tint_symbol_2(tint_symbol_1, 0u, tint_symbol_4(tint_symbol, 0u));
|
tint_symbol_1_store(0u, tint_symbol_load(0u));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
FXC validation failure:
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001A3687DC740(4,68-76): error X3000: syntax error: unexpected token 'float16_t'
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001A3687DC740(5,3-14): error X3018: invalid subscript 'Store'
|
|
||||||
|
|
||||||
|
|
|
@ -3,22 +3,18 @@ SKIP: FAILED
|
||||||
ByteAddressBuffer tint_symbol : register(t0, space0);
|
ByteAddressBuffer tint_symbol : register(t0, space0);
|
||||||
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
|
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
|
||||||
|
|
||||||
void tint_symbol_2(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 3, 3> value) {
|
void tint_symbol_1_store(uint offset, matrix<float16_t, 3, 3> value) {
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
tint_symbol_1.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
tint_symbol_1.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 16u), value[2u]);
|
tint_symbol_1.Store<vector<float16_t, 3> >((offset + 16u), value[2u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix<float16_t, 3, 3> tint_symbol_4(ByteAddressBuffer buffer, uint offset) {
|
matrix<float16_t, 3, 3> tint_symbol_load(uint offset) {
|
||||||
return matrix<float16_t, 3, 3>(buffer.Load<vector<float16_t, 3> >((offset + 0u)), buffer.Load<vector<float16_t, 3> >((offset + 8u)), buffer.Load<vector<float16_t, 3> >((offset + 16u)));
|
return matrix<float16_t, 3, 3>(tint_symbol.Load<vector<float16_t, 3> >((offset + 0u)), tint_symbol.Load<vector<float16_t, 3> >((offset + 8u)), tint_symbol.Load<vector<float16_t, 3> >((offset + 16u)));
|
||||||
}
|
}
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void main() {
|
void main() {
|
||||||
tint_symbol_2(tint_symbol_1, 0u, tint_symbol_4(tint_symbol, 0u));
|
tint_symbol_1_store(0u, tint_symbol_load(0u));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
FXC validation failure:
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002722B6D74E0(4,68-76): error X3000: syntax error: unexpected token 'float16_t'
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002722B6D74E0(5,3-14): error X3018: invalid subscript 'Store'
|
|
||||||
|
|
||||||
|
|
|
@ -3,22 +3,18 @@ SKIP: FAILED
|
||||||
ByteAddressBuffer tint_symbol : register(t0, space0);
|
ByteAddressBuffer tint_symbol : register(t0, space0);
|
||||||
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
|
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
|
||||||
|
|
||||||
void tint_symbol_2(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 3, 4> value) {
|
void tint_symbol_1_store(uint offset, matrix<float16_t, 3, 4> value) {
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
tint_symbol_1.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
tint_symbol_1.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 16u), value[2u]);
|
tint_symbol_1.Store<vector<float16_t, 4> >((offset + 16u), value[2u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix<float16_t, 3, 4> tint_symbol_4(ByteAddressBuffer buffer, uint offset) {
|
matrix<float16_t, 3, 4> tint_symbol_load(uint offset) {
|
||||||
return matrix<float16_t, 3, 4>(buffer.Load<vector<float16_t, 4> >((offset + 0u)), buffer.Load<vector<float16_t, 4> >((offset + 8u)), buffer.Load<vector<float16_t, 4> >((offset + 16u)));
|
return matrix<float16_t, 3, 4>(tint_symbol.Load<vector<float16_t, 4> >((offset + 0u)), tint_symbol.Load<vector<float16_t, 4> >((offset + 8u)), tint_symbol.Load<vector<float16_t, 4> >((offset + 16u)));
|
||||||
}
|
}
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void main() {
|
void main() {
|
||||||
tint_symbol_2(tint_symbol_1, 0u, tint_symbol_4(tint_symbol, 0u));
|
tint_symbol_1_store(0u, tint_symbol_load(0u));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
FXC validation failure:
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001F969F77390(4,68-76): error X3000: syntax error: unexpected token 'float16_t'
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001F969F77390(5,3-14): error X3018: invalid subscript 'Store'
|
|
||||||
|
|
||||||
|
|
|
@ -3,23 +3,19 @@ SKIP: FAILED
|
||||||
ByteAddressBuffer tint_symbol : register(t0, space0);
|
ByteAddressBuffer tint_symbol : register(t0, space0);
|
||||||
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
|
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
|
||||||
|
|
||||||
void tint_symbol_2(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 4, 2> value) {
|
void tint_symbol_1_store(uint offset, matrix<float16_t, 4, 2> value) {
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
tint_symbol_1.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
tint_symbol_1.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 8u), value[2u]);
|
tint_symbol_1.Store<vector<float16_t, 2> >((offset + 8u), value[2u]);
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 12u), value[3u]);
|
tint_symbol_1.Store<vector<float16_t, 2> >((offset + 12u), value[3u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix<float16_t, 4, 2> tint_symbol_4(ByteAddressBuffer buffer, uint offset) {
|
matrix<float16_t, 4, 2> tint_symbol_load(uint offset) {
|
||||||
return matrix<float16_t, 4, 2>(buffer.Load<vector<float16_t, 2> >((offset + 0u)), buffer.Load<vector<float16_t, 2> >((offset + 4u)), buffer.Load<vector<float16_t, 2> >((offset + 8u)), buffer.Load<vector<float16_t, 2> >((offset + 12u)));
|
return matrix<float16_t, 4, 2>(tint_symbol.Load<vector<float16_t, 2> >((offset + 0u)), tint_symbol.Load<vector<float16_t, 2> >((offset + 4u)), tint_symbol.Load<vector<float16_t, 2> >((offset + 8u)), tint_symbol.Load<vector<float16_t, 2> >((offset + 12u)));
|
||||||
}
|
}
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void main() {
|
void main() {
|
||||||
tint_symbol_2(tint_symbol_1, 0u, tint_symbol_4(tint_symbol, 0u));
|
tint_symbol_1_store(0u, tint_symbol_load(0u));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
FXC validation failure:
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001A0195E7740(4,68-76): error X3000: syntax error: unexpected token 'float16_t'
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001A0195E7740(5,3-14): error X3018: invalid subscript 'Store'
|
|
||||||
|
|
||||||
|
|
|
@ -3,23 +3,19 @@ SKIP: FAILED
|
||||||
ByteAddressBuffer tint_symbol : register(t0, space0);
|
ByteAddressBuffer tint_symbol : register(t0, space0);
|
||||||
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
|
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
|
||||||
|
|
||||||
void tint_symbol_2(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 4, 3> value) {
|
void tint_symbol_1_store(uint offset, matrix<float16_t, 4, 3> value) {
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
tint_symbol_1.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
tint_symbol_1.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 16u), value[2u]);
|
tint_symbol_1.Store<vector<float16_t, 3> >((offset + 16u), value[2u]);
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 24u), value[3u]);
|
tint_symbol_1.Store<vector<float16_t, 3> >((offset + 24u), value[3u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix<float16_t, 4, 3> tint_symbol_4(ByteAddressBuffer buffer, uint offset) {
|
matrix<float16_t, 4, 3> tint_symbol_load(uint offset) {
|
||||||
return matrix<float16_t, 4, 3>(buffer.Load<vector<float16_t, 3> >((offset + 0u)), buffer.Load<vector<float16_t, 3> >((offset + 8u)), buffer.Load<vector<float16_t, 3> >((offset + 16u)), buffer.Load<vector<float16_t, 3> >((offset + 24u)));
|
return matrix<float16_t, 4, 3>(tint_symbol.Load<vector<float16_t, 3> >((offset + 0u)), tint_symbol.Load<vector<float16_t, 3> >((offset + 8u)), tint_symbol.Load<vector<float16_t, 3> >((offset + 16u)), tint_symbol.Load<vector<float16_t, 3> >((offset + 24u)));
|
||||||
}
|
}
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void main() {
|
void main() {
|
||||||
tint_symbol_2(tint_symbol_1, 0u, tint_symbol_4(tint_symbol, 0u));
|
tint_symbol_1_store(0u, tint_symbol_load(0u));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
FXC validation failure:
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000027711EB7740(4,68-76): error X3000: syntax error: unexpected token 'float16_t'
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000027711EB7740(5,3-14): error X3018: invalid subscript 'Store'
|
|
||||||
|
|
||||||
|
|
|
@ -3,23 +3,19 @@ SKIP: FAILED
|
||||||
ByteAddressBuffer tint_symbol : register(t0, space0);
|
ByteAddressBuffer tint_symbol : register(t0, space0);
|
||||||
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
|
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
|
||||||
|
|
||||||
void tint_symbol_2(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 4, 4> value) {
|
void tint_symbol_1_store(uint offset, matrix<float16_t, 4, 4> value) {
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
tint_symbol_1.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
tint_symbol_1.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 16u), value[2u]);
|
tint_symbol_1.Store<vector<float16_t, 4> >((offset + 16u), value[2u]);
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 24u), value[3u]);
|
tint_symbol_1.Store<vector<float16_t, 4> >((offset + 24u), value[3u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix<float16_t, 4, 4> tint_symbol_4(ByteAddressBuffer buffer, uint offset) {
|
matrix<float16_t, 4, 4> tint_symbol_load(uint offset) {
|
||||||
return matrix<float16_t, 4, 4>(buffer.Load<vector<float16_t, 4> >((offset + 0u)), buffer.Load<vector<float16_t, 4> >((offset + 8u)), buffer.Load<vector<float16_t, 4> >((offset + 16u)), buffer.Load<vector<float16_t, 4> >((offset + 24u)));
|
return matrix<float16_t, 4, 4>(tint_symbol.Load<vector<float16_t, 4> >((offset + 0u)), tint_symbol.Load<vector<float16_t, 4> >((offset + 8u)), tint_symbol.Load<vector<float16_t, 4> >((offset + 16u)), tint_symbol.Load<vector<float16_t, 4> >((offset + 24u)));
|
||||||
}
|
}
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void main() {
|
void main() {
|
||||||
tint_symbol_2(tint_symbol_1, 0u, tint_symbol_4(tint_symbol, 0u));
|
tint_symbol_1_store(0u, tint_symbol_load(0u));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
FXC validation failure:
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000023AE8057740(4,68-76): error X3000: syntax error: unexpected token 'float16_t'
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000023AE8057740(5,3-14): error X3018: invalid subscript 'Store'
|
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,3 @@ void main() {
|
||||||
tint_symbol_1.Store<float16_t>(0u, tint_symbol.Load<float16_t>(0u));
|
tint_symbol_1.Store<float16_t>(0u, tint_symbol.Load<float16_t>(0u));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
FXC validation failure:
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001A520622CB0(6,3-21): error X3018: invalid subscript 'Store'
|
|
||||||
|
|
||||||
|
|
|
@ -12,41 +12,38 @@ struct S {
|
||||||
ByteAddressBuffer tint_symbol : register(t0, space0);
|
ByteAddressBuffer tint_symbol : register(t0, space0);
|
||||||
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
|
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
|
||||||
|
|
||||||
matrix<float16_t, 2, 4> tint_symbol_6(ByteAddressBuffer buffer, uint offset) {
|
matrix<float16_t, 2, 4> tint_symbol_load_4(uint offset) {
|
||||||
return matrix<float16_t, 2, 4>(buffer.Load<vector<float16_t, 4> >((offset + 0u)), buffer.Load<vector<float16_t, 4> >((offset + 8u)));
|
return matrix<float16_t, 2, 4>(tint_symbol.Load<vector<float16_t, 4> >((offset + 0u)), tint_symbol.Load<vector<float16_t, 4> >((offset + 8u)));
|
||||||
}
|
}
|
||||||
|
|
||||||
Inner tint_symbol_3(ByteAddressBuffer buffer, uint offset) {
|
Inner tint_symbol_load_1(uint offset) {
|
||||||
const Inner tint_symbol_14 = {buffer.Load<float16_t>((offset + 0u)), buffer.Load<vector<float16_t, 3> >((offset + 8u)), tint_symbol_6(buffer, (offset + 16u))};
|
const Inner tint_symbol_2 = {tint_symbol.Load<float16_t>((offset + 0u)), tint_symbol.Load<vector<float16_t, 3> >((offset + 8u)), tint_symbol_load_4((offset + 16u))};
|
||||||
return tint_symbol_14;
|
return tint_symbol_2;
|
||||||
}
|
}
|
||||||
|
|
||||||
S tint_symbol_2(ByteAddressBuffer buffer, uint offset) {
|
S tint_symbol_load(uint offset) {
|
||||||
const S tint_symbol_15 = {tint_symbol_3(buffer, (offset + 0u))};
|
const S tint_symbol_3 = {tint_symbol_load_1((offset + 0u))};
|
||||||
return tint_symbol_15;
|
return tint_symbol_3;
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_12(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 2, 4> value) {
|
void tint_symbol_1_store_4(uint offset, matrix<float16_t, 2, 4> value) {
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
tint_symbol_1.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
tint_symbol_1.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_9(RWByteAddressBuffer buffer, uint offset, Inner value) {
|
void tint_symbol_1_store_1(uint offset, Inner value) {
|
||||||
buffer.Store<float16_t>((offset + 0u), value.scalar_f16);
|
tint_symbol_1.Store<float16_t>((offset + 0u), value.scalar_f16);
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 8u), value.vec3_f16);
|
tint_symbol_1.Store<vector<float16_t, 3> >((offset + 8u), value.vec3_f16);
|
||||||
tint_symbol_12(buffer, (offset + 16u), value.mat2x4_f16);
|
tint_symbol_1_store_4((offset + 16u), value.mat2x4_f16);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_8(RWByteAddressBuffer buffer, uint offset, S value) {
|
void tint_symbol_1_store(uint offset, S value) {
|
||||||
tint_symbol_9(buffer, (offset + 0u), value.inner);
|
tint_symbol_1_store_1((offset + 0u), value.inner);
|
||||||
}
|
}
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void main() {
|
void main() {
|
||||||
const S t = tint_symbol_2(tint_symbol, 0u);
|
const S t = tint_symbol_load(0u);
|
||||||
tint_symbol_8(tint_symbol_1, 0u, t);
|
tint_symbol_1_store(0u, t);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
FXC validation failure:
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001A50B947690(2,3-11): error X3000: unrecognized identifier 'float16_t'
|
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,3 @@ void main() {
|
||||||
tint_symbol_1.Store<vector<float16_t, 2> >(0u, tint_symbol.Load<vector<float16_t, 2> >(0u));
|
tint_symbol_1.Store<vector<float16_t, 2> >(0u, tint_symbol.Load<vector<float16_t, 2> >(0u));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
FXC validation failure:
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000017510013100(6,3-21): error X3018: invalid subscript 'Store'
|
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,3 @@ void main() {
|
||||||
tint_symbol_1.Store<vector<float16_t, 3> >(0u, tint_symbol.Load<vector<float16_t, 3> >(0u));
|
tint_symbol_1.Store<vector<float16_t, 3> >(0u, tint_symbol.Load<vector<float16_t, 3> >(0u));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
FXC validation failure:
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000207E7334340(6,3-21): error X3018: invalid subscript 'Store'
|
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,3 @@ void main() {
|
||||||
tint_symbol_1.Store<vector<float16_t, 4> >(0u, tint_symbol.Load<vector<float16_t, 4> >(0u));
|
tint_symbol_1.Store<vector<float16_t, 4> >(0u, tint_symbol.Load<vector<float16_t, 4> >(0u));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
FXC validation failure:
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001D5DD394680(6,3-21): error X3018: invalid subscript 'Store'
|
|
||||||
|
|
||||||
|
|
|
@ -8,240 +8,240 @@ struct tint_symbol_1 {
|
||||||
uint idx : SV_GroupIndex;
|
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;
|
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;
|
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)));
|
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_2 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_3 = ((offset + 16u)) / 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_4 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_5 = ((offset + 16u)) / 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;
|
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;
|
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;
|
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)));
|
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_9 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_10 = ((offset + 16u)) / 4;
|
const uint scalar_offset_10 = ((offset + 16u)) / 4;
|
||||||
const uint scalar_offset_11 = ((offset + 32u)) / 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_12 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_13 = ((offset + 16u)) / 4;
|
const uint scalar_offset_13 = ((offset + 16u)) / 4;
|
||||||
const uint scalar_offset_14 = ((offset + 32u)) / 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;
|
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;
|
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;
|
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;
|
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)));
|
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_19 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_20 = ((offset + 16u)) / 4;
|
const uint scalar_offset_20 = ((offset + 16u)) / 4;
|
||||||
const uint scalar_offset_21 = ((offset + 32u)) / 4;
|
const uint scalar_offset_21 = ((offset + 32u)) / 4;
|
||||||
const uint scalar_offset_22 = ((offset + 48u)) / 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_23 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_24 = ((offset + 16u)) / 4;
|
const uint scalar_offset_24 = ((offset + 16u)) / 4;
|
||||||
const uint scalar_offset_25 = ((offset + 32u)) / 4;
|
const uint scalar_offset_25 = ((offset + 32u)) / 4;
|
||||||
const uint scalar_offset_26 = ((offset + 48u)) / 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;
|
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;
|
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))));
|
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;
|
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);
|
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));
|
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);
|
float16_t ubo_load_11_y = f16tof32(ubo_load_11[0] >> 16);
|
||||||
const uint scalar_offset_30 = ((offset + 8u)) / 4;
|
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);
|
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));
|
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);
|
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]));
|
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;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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]));
|
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;
|
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;
|
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;
|
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))));
|
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;
|
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);
|
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));
|
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);
|
float16_t ubo_load_22_y = f16tof32(ubo_load_22[0] >> 16);
|
||||||
const uint scalar_offset_37 = ((offset + 8u)) / 4;
|
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);
|
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));
|
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);
|
float16_t ubo_load_24_y = f16tof32(ubo_load_24[0] >> 16);
|
||||||
const uint scalar_offset_38 = ((offset + 16u)) / 4;
|
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);
|
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));
|
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);
|
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]));
|
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;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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]));
|
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;
|
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;
|
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;
|
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;
|
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))));
|
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;
|
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);
|
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));
|
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);
|
float16_t ubo_load_38_y = f16tof32(ubo_load_38[0] >> 16);
|
||||||
const uint scalar_offset_47 = ((offset + 8u)) / 4;
|
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);
|
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));
|
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);
|
float16_t ubo_load_40_y = f16tof32(ubo_load_40[0] >> 16);
|
||||||
const uint scalar_offset_48 = ((offset + 16u)) / 4;
|
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);
|
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));
|
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);
|
float16_t ubo_load_42_y = f16tof32(ubo_load_42[0] >> 16);
|
||||||
const uint scalar_offset_49 = ((offset + 24u)) / 4;
|
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);
|
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));
|
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);
|
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]));
|
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;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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]));
|
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];
|
typedef float3 ub_load_34_ret[2];
|
||||||
tint_symbol_36_ret tint_symbol_36(uint4 buffer[400], uint offset) {
|
ub_load_34_ret ub_load_34(uint offset) {
|
||||||
float3 arr_1[2] = (float3[2])0;
|
float3 arr_1[2] = (float3[2])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 2u); i = (i + 1u)) {
|
for(uint i = 0u; (i < 2u); i = (i + 1u)) {
|
||||||
const uint scalar_offset_54 = ((offset + (i * 16u))) / 4;
|
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;
|
return arr_1;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef matrix<float16_t, 4, 2> tint_symbol_37_ret[2];
|
typedef matrix<float16_t, 4, 2> ub_load_35_ret[2];
|
||||||
tint_symbol_37_ret tint_symbol_37(uint4 buffer[400], uint offset) {
|
ub_load_35_ret ub_load_35(uint offset) {
|
||||||
matrix<float16_t, 4, 2> arr_2[2] = (matrix<float16_t, 4, 2>[2])0;
|
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)) {
|
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;
|
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_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));
|
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 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 float2x2 mat2x2_f32 = ub_load_16(((800u * idx) + 168u));
|
||||||
const float2x3 mat2x3_f32 = tint_symbol_19(ub, ((800u * idx) + 192u));
|
const float2x3 mat2x3_f32 = ub_load_17(((800u * idx) + 192u));
|
||||||
const float2x4 mat2x4_f32 = tint_symbol_20(ub, ((800u * idx) + 224u));
|
const float2x4 mat2x4_f32 = ub_load_18(((800u * idx) + 224u));
|
||||||
const float3x2 mat3x2_f32 = tint_symbol_21(ub, ((800u * idx) + 256u));
|
const float3x2 mat3x2_f32 = ub_load_19(((800u * idx) + 256u));
|
||||||
const float3x3 mat3x3_f32 = tint_symbol_22(ub, ((800u * idx) + 288u));
|
const float3x3 mat3x3_f32 = ub_load_20(((800u * idx) + 288u));
|
||||||
const float3x4 mat3x4_f32 = tint_symbol_23(ub, ((800u * idx) + 336u));
|
const float3x4 mat3x4_f32 = ub_load_21(((800u * idx) + 336u));
|
||||||
const float4x2 mat4x2_f32 = tint_symbol_24(ub, ((800u * idx) + 384u));
|
const float4x2 mat4x2_f32 = ub_load_22(((800u * idx) + 384u));
|
||||||
const float4x3 mat4x3_f32 = tint_symbol_25(ub, ((800u * idx) + 416u));
|
const float4x3 mat4x3_f32 = ub_load_23(((800u * idx) + 416u));
|
||||||
const float4x4 mat4x4_f32 = tint_symbol_26(ub, ((800u * idx) + 480u));
|
const float4x4 mat4x4_f32 = ub_load_24(((800u * idx) + 480u));
|
||||||
const matrix<float16_t, 2, 2> mat2x2_f16 = tint_symbol_27(ub, ((800u * idx) + 544u));
|
const matrix<float16_t, 2, 2> mat2x2_f16 = ub_load_25(((800u * idx) + 544u));
|
||||||
const matrix<float16_t, 2, 3> mat2x3_f16 = tint_symbol_28(ub, ((800u * idx) + 552u));
|
const matrix<float16_t, 2, 3> mat2x3_f16 = ub_load_26(((800u * idx) + 552u));
|
||||||
const matrix<float16_t, 2, 4> mat2x4_f16 = tint_symbol_29(ub, ((800u * idx) + 568u));
|
const matrix<float16_t, 2, 4> mat2x4_f16 = ub_load_27(((800u * idx) + 568u));
|
||||||
const matrix<float16_t, 3, 2> mat3x2_f16 = tint_symbol_30(ub, ((800u * idx) + 584u));
|
const matrix<float16_t, 3, 2> mat3x2_f16 = ub_load_28(((800u * idx) + 584u));
|
||||||
const matrix<float16_t, 3, 3> mat3x3_f16 = tint_symbol_31(ub, ((800u * idx) + 600u));
|
const matrix<float16_t, 3, 3> mat3x3_f16 = ub_load_29(((800u * idx) + 600u));
|
||||||
const matrix<float16_t, 3, 4> mat3x4_f16 = tint_symbol_32(ub, ((800u * idx) + 624u));
|
const matrix<float16_t, 3, 4> mat3x4_f16 = ub_load_30(((800u * idx) + 624u));
|
||||||
const matrix<float16_t, 4, 2> mat4x2_f16 = tint_symbol_33(ub, ((800u * idx) + 648u));
|
const matrix<float16_t, 4, 2> mat4x2_f16 = ub_load_31(((800u * idx) + 648u));
|
||||||
const matrix<float16_t, 4, 3> mat4x3_f16 = tint_symbol_34(ub, ((800u * idx) + 664u));
|
const matrix<float16_t, 4, 3> mat4x3_f16 = ub_load_32(((800u * idx) + 664u));
|
||||||
const matrix<float16_t, 4, 4> mat4x4_f16 = tint_symbol_35(ub, ((800u * idx) + 696u));
|
const matrix<float16_t, 4, 4> mat4x4_f16 = ub_load_33(((800u * idx) + 696u));
|
||||||
const float3 arr2_vec3_f32[2] = tint_symbol_36(ub, ((800u * idx) + 736u));
|
const float3 arr2_vec3_f32[2] = ub_load_34(((800u * idx) + 736u));
|
||||||
const matrix<float16_t, 4, 2> arr2_mat4x2_f16[2] = tint_symbol_37(ub, ((800u * idx) + 768u));
|
const matrix<float16_t, 4, 2> arr2_mat4x2_f16[2] = ub_load_35(((800u * idx) + 768u));
|
||||||
}
|
}
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
|
@ -320,6 +320,3 @@ void main(tint_symbol_1 tint_symbol) {
|
||||||
main_inner(tint_symbol.idx);
|
main_inner(tint_symbol.idx);
|
||||||
return;
|
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];
|
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;
|
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;
|
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)));
|
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_2 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_3 = ((offset + 16u)) / 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_4 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_5 = ((offset + 16u)) / 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;
|
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;
|
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;
|
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)));
|
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_9 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_10 = ((offset + 16u)) / 4;
|
const uint scalar_offset_10 = ((offset + 16u)) / 4;
|
||||||
const uint scalar_offset_11 = ((offset + 32u)) / 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_12 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_13 = ((offset + 16u)) / 4;
|
const uint scalar_offset_13 = ((offset + 16u)) / 4;
|
||||||
const uint scalar_offset_14 = ((offset + 32u)) / 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;
|
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;
|
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;
|
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;
|
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)));
|
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_19 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_20 = ((offset + 16u)) / 4;
|
const uint scalar_offset_20 = ((offset + 16u)) / 4;
|
||||||
const uint scalar_offset_21 = ((offset + 32u)) / 4;
|
const uint scalar_offset_21 = ((offset + 32u)) / 4;
|
||||||
const uint scalar_offset_22 = ((offset + 48u)) / 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_23 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_24 = ((offset + 16u)) / 4;
|
const uint scalar_offset_24 = ((offset + 16u)) / 4;
|
||||||
const uint scalar_offset_25 = ((offset + 32u)) / 4;
|
const uint scalar_offset_25 = ((offset + 32u)) / 4;
|
||||||
const uint scalar_offset_26 = ((offset + 48u)) / 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;
|
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;
|
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))));
|
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;
|
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);
|
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));
|
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);
|
float16_t ubo_load_11_y = f16tof32(ubo_load_11[0] >> 16);
|
||||||
const uint scalar_offset_30 = ((offset + 8u)) / 4;
|
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);
|
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));
|
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);
|
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]));
|
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;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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]));
|
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;
|
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;
|
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;
|
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))));
|
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;
|
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);
|
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));
|
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);
|
float16_t ubo_load_22_y = f16tof32(ubo_load_22[0] >> 16);
|
||||||
const uint scalar_offset_37 = ((offset + 8u)) / 4;
|
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);
|
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));
|
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);
|
float16_t ubo_load_24_y = f16tof32(ubo_load_24[0] >> 16);
|
||||||
const uint scalar_offset_38 = ((offset + 16u)) / 4;
|
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);
|
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));
|
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);
|
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]));
|
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;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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]));
|
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;
|
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;
|
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;
|
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;
|
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))));
|
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;
|
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);
|
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));
|
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);
|
float16_t ubo_load_38_y = f16tof32(ubo_load_38[0] >> 16);
|
||||||
const uint scalar_offset_47 = ((offset + 8u)) / 4;
|
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);
|
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));
|
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);
|
float16_t ubo_load_40_y = f16tof32(ubo_load_40[0] >> 16);
|
||||||
const uint scalar_offset_48 = ((offset + 16u)) / 4;
|
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);
|
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));
|
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);
|
float16_t ubo_load_42_y = f16tof32(ubo_load_42[0] >> 16);
|
||||||
const uint scalar_offset_49 = ((offset + 24u)) / 4;
|
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);
|
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));
|
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);
|
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]));
|
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;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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]));
|
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];
|
typedef float3 ub_load_34_ret[2];
|
||||||
tint_symbol_34_ret tint_symbol_34(uint4 buffer[55], uint offset) {
|
ub_load_34_ret ub_load_34(uint offset) {
|
||||||
float3 arr[2] = (float3[2])0;
|
float3 arr[2] = (float3[2])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 2u); i = (i + 1u)) {
|
for(uint i = 0u; (i < 2u); i = (i + 1u)) {
|
||||||
const uint scalar_offset_54 = ((offset + (i * 16u))) / 4;
|
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;
|
return arr;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef matrix<float16_t, 4, 2> tint_symbol_35_ret[2];
|
typedef matrix<float16_t, 4, 2> ub_load_35_ret[2];
|
||||||
tint_symbol_35_ret tint_symbol_35(uint4 buffer[55], uint offset) {
|
ub_load_35_ret ub_load_35(uint offset) {
|
||||||
matrix<float16_t, 4, 2> arr_1[2] = (matrix<float16_t, 4, 2>[2])0;
|
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)) {
|
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;
|
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_55 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_56 = ((offset + 4u)) / 4;
|
const uint scalar_offset_56 = ((offset + 4u)) / 4;
|
||||||
const uint scalar_offset_bytes = ((offset + 8u));
|
const uint scalar_offset_bytes = ((offset + 8u));
|
||||||
const uint scalar_offset_index = scalar_offset_bytes / 4;
|
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)))};
|
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_38;
|
return tint_symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef Inner tint_symbol_37_ret[4];
|
typedef Inner ub_load_37_ret[4];
|
||||||
tint_symbol_37_ret tint_symbol_37(uint4 buffer[55], uint offset) {
|
ub_load_37_ret ub_load_37(uint offset) {
|
||||||
Inner arr_2[4] = (Inner[4])0;
|
Inner arr_2[4] = (Inner[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_2 = 0u; (i_2 < 4u); i_2 = (i_2 + 1u)) {
|
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;
|
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_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));
|
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 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 float2x2 mat2x2_f32 = ub_load_16(168u);
|
||||||
const float2x3 mat2x3_f32 = tint_symbol_17(ub, 192u);
|
const float2x3 mat2x3_f32 = ub_load_17(192u);
|
||||||
const float2x4 mat2x4_f32 = tint_symbol_18(ub, 224u);
|
const float2x4 mat2x4_f32 = ub_load_18(224u);
|
||||||
const float3x2 mat3x2_f32 = tint_symbol_19(ub, 256u);
|
const float3x2 mat3x2_f32 = ub_load_19(256u);
|
||||||
const float3x3 mat3x3_f32 = tint_symbol_20(ub, 288u);
|
const float3x3 mat3x3_f32 = ub_load_20(288u);
|
||||||
const float3x4 mat3x4_f32 = tint_symbol_21(ub, 336u);
|
const float3x4 mat3x4_f32 = ub_load_21(336u);
|
||||||
const float4x2 mat4x2_f32 = tint_symbol_22(ub, 384u);
|
const float4x2 mat4x2_f32 = ub_load_22(384u);
|
||||||
const float4x3 mat4x3_f32 = tint_symbol_23(ub, 416u);
|
const float4x3 mat4x3_f32 = ub_load_23(416u);
|
||||||
const float4x4 mat4x4_f32 = tint_symbol_24(ub, 480u);
|
const float4x4 mat4x4_f32 = ub_load_24(480u);
|
||||||
const matrix<float16_t, 2, 2> mat2x2_f16 = tint_symbol_25(ub, 544u);
|
const matrix<float16_t, 2, 2> mat2x2_f16 = ub_load_25(544u);
|
||||||
const matrix<float16_t, 2, 3> mat2x3_f16 = tint_symbol_26(ub, 552u);
|
const matrix<float16_t, 2, 3> mat2x3_f16 = ub_load_26(552u);
|
||||||
const matrix<float16_t, 2, 4> mat2x4_f16 = tint_symbol_27(ub, 568u);
|
const matrix<float16_t, 2, 4> mat2x4_f16 = ub_load_27(568u);
|
||||||
const matrix<float16_t, 3, 2> mat3x2_f16 = tint_symbol_28(ub, 584u);
|
const matrix<float16_t, 3, 2> mat3x2_f16 = ub_load_28(584u);
|
||||||
const matrix<float16_t, 3, 3> mat3x3_f16 = tint_symbol_29(ub, 600u);
|
const matrix<float16_t, 3, 3> mat3x3_f16 = ub_load_29(600u);
|
||||||
const matrix<float16_t, 3, 4> mat3x4_f16 = tint_symbol_30(ub, 624u);
|
const matrix<float16_t, 3, 4> mat3x4_f16 = ub_load_30(624u);
|
||||||
const matrix<float16_t, 4, 2> mat4x2_f16 = tint_symbol_31(ub, 648u);
|
const matrix<float16_t, 4, 2> mat4x2_f16 = ub_load_31(648u);
|
||||||
const matrix<float16_t, 4, 3> mat4x3_f16 = tint_symbol_32(ub, 664u);
|
const matrix<float16_t, 4, 3> mat4x3_f16 = ub_load_32(664u);
|
||||||
const matrix<float16_t, 4, 4> mat4x4_f16 = tint_symbol_33(ub, 696u);
|
const matrix<float16_t, 4, 4> mat4x4_f16 = ub_load_33(696u);
|
||||||
const float3 arr2_vec3_f32[2] = tint_symbol_34(ub, 736u);
|
const float3 arr2_vec3_f32[2] = ub_load_34(736u);
|
||||||
const matrix<float16_t, 4, 2> arr2_mat4x2_f16[2] = tint_symbol_35(ub, 768u);
|
const matrix<float16_t, 4, 2> arr2_mat4x2_f16[2] = ub_load_35(768u);
|
||||||
const Inner struct_inner = tint_symbol_36(ub, 800u);
|
const Inner struct_inner = ub_load_36(800u);
|
||||||
const Inner array_struct_inner[4] = tint_symbol_37(ub, 816u);
|
const Inner array_struct_inner[4] = ub_load_37(816u);
|
||||||
return;
|
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;
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
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]));
|
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];
|
typedef matrix<float16_t, 2, 3> a_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
a_load_ret a_load(uint offset) {
|
||||||
matrix<float16_t, 2, 3> arr[4] = (matrix<float16_t, 2, 3>[4])0;
|
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)) {
|
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;
|
return arr;
|
||||||
|
@ -39,8 +39,8 @@ tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||||
void f() {
|
void f() {
|
||||||
const int p_a_i_save = i();
|
const int p_a_i_save = i();
|
||||||
const int p_a_i_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[4] = a_load(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_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;
|
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];
|
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);
|
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]);
|
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;
|
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];
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
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]));
|
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];
|
typedef matrix<float16_t, 2, 3> a_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
a_load_ret a_load(uint offset) {
|
||||||
matrix<float16_t, 2, 3> arr[4] = (matrix<float16_t, 2, 3>[4])0;
|
matrix<float16_t, 2, 3> arr[4] = (matrix<float16_t, 2, 3>[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -31,14 +31,11 @@ tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
const matrix<float16_t, 2, 3> l_a[4] = tint_symbol(a, 0u);
|
const matrix<float16_t, 2, 3> l_a[4] = a_load(0u);
|
||||||
const matrix<float16_t, 2, 3> l_a_i = tint_symbol_1(a, 32u);
|
const matrix<float16_t, 2, 3> l_a_i = a_load_1(32u);
|
||||||
uint2 ubo_load_4 = a[2].zw;
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
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]);
|
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;
|
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];
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
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)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
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;
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
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);
|
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;
|
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) {
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
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]));
|
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];
|
typedef matrix<float16_t, 2, 3> u_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
matrix<float16_t, 2, 3> arr[4] = (matrix<float16_t, 2, 3>[4])0;
|
matrix<float16_t, 2, 3> arr[4] = (matrix<float16_t, 2, 3>[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -43,8 +43,8 @@ tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
a(tint_symbol(u, 0u));
|
a(u_load(0u));
|
||||||
b(tint_symbol_1(u, 16u));
|
b(u_load_1(16u));
|
||||||
uint2 ubo_load_4 = u[1].xy;
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
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);
|
d(vector<float16_t, 3>(ubo_load_5_xz[0], ubo_load_5_y, ubo_load_5_xz[1]).zxy.x);
|
||||||
return;
|
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;
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
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]));
|
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];
|
typedef matrix<float16_t, 2, 3> u_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
matrix<float16_t, 2, 3> arr[4] = (matrix<float16_t, 2, 3>[4])0;
|
matrix<float16_t, 2, 3> arr[4] = (matrix<float16_t, 2, 3>[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -32,8 +32,8 @@ tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
p = tint_symbol(u, 0u);
|
p = u_load(0u);
|
||||||
p[1] = tint_symbol_1(u, 32u);
|
p[1] = u_load_1(32u);
|
||||||
uint2 ubo_load_4 = u[0].zw;
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
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)));
|
p[1][0].x = float16_t(f16tof32(((u[0].z) & 0xFFFF)));
|
||||||
return;
|
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);
|
RWByteAddressBuffer s : register(u1, space0);
|
||||||
|
|
||||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 2, 3> value) {
|
void s_store_1(uint offset, matrix<float16_t, 2, 3> value) {
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
s.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
s.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 2, 3> value[4]) {
|
void s_store(uint offset, matrix<float16_t, 2, 3> value[4]) {
|
||||||
matrix<float16_t, 2, 3> array[4] = value;
|
matrix<float16_t, 2, 3> array_1[4] = value;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
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]));
|
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];
|
typedef matrix<float16_t, 2, 3> u_load_ret[4];
|
||||||
tint_symbol_3_ret tint_symbol_3(uint4 buffer[4], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
matrix<float16_t, 2, 3> arr[4] = (matrix<float16_t, 2, 3>[4])0;
|
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)) {
|
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;
|
return arr;
|
||||||
|
@ -46,8 +46,8 @@ tint_symbol_3_ret tint_symbol_3(uint4 buffer[4], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
tint_symbol(s, 0u, tint_symbol_3(u, 0u));
|
s_store(0u, u_load(0u));
|
||||||
tint_symbol_1(s, 16u, tint_symbol_4(u, 32u));
|
s_store_1(16u, u_load_1(32u));
|
||||||
uint2 ubo_load_4 = u[0].zw;
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
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))));
|
s.Store<float16_t>(16u, float16_t(f16tof32(((u[0].z) & 0xFFFF))));
|
||||||
return;
|
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;
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
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]));
|
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];
|
typedef matrix<float16_t, 2, 3> u_load_ret[4];
|
||||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[4], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
matrix<float16_t, 2, 3> arr[4] = (matrix<float16_t, 2, 3>[4])0;
|
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)) {
|
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;
|
return arr;
|
||||||
|
@ -42,8 +42,8 @@ void f_inner(uint local_invocation_index) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
GroupMemoryBarrierWithGroupSync();
|
GroupMemoryBarrierWithGroupSync();
|
||||||
w = tint_symbol_2(u, 0u);
|
w = u_load(0u);
|
||||||
w[1] = tint_symbol_3(u, 32u);
|
w[1] = u_load_1(32u);
|
||||||
uint2 ubo_load_4 = u[0].zw;
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
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);
|
f_inner(tint_symbol.local_invocation_index);
|
||||||
return;
|
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;
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_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));
|
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]));
|
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];
|
typedef matrix<float16_t, 2, 4> a_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
a_load_ret a_load(uint offset) {
|
||||||
matrix<float16_t, 2, 4> arr[4] = (matrix<float16_t, 2, 4>[4])0;
|
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)) {
|
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;
|
return arr;
|
||||||
|
@ -39,8 +39,8 @@ tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||||
void f() {
|
void f() {
|
||||||
const int p_a_i_save = i();
|
const int p_a_i_save = i();
|
||||||
const int p_a_i_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[4] = a_load(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_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;
|
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];
|
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);
|
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]);
|
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;
|
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];
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_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));
|
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]));
|
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];
|
typedef matrix<float16_t, 2, 4> a_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
a_load_ret a_load(uint offset) {
|
||||||
matrix<float16_t, 2, 4> arr[4] = (matrix<float16_t, 2, 4>[4])0;
|
matrix<float16_t, 2, 4> arr[4] = (matrix<float16_t, 2, 4>[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -31,14 +31,11 @@ tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
const matrix<float16_t, 2, 4> l_a[4] = tint_symbol(a, 0u);
|
const matrix<float16_t, 2, 4> l_a[4] = a_load(0u);
|
||||||
const matrix<float16_t, 2, 4> l_a_i = tint_symbol_1(a, 32u);
|
const matrix<float16_t, 2, 4> l_a_i = a_load_1(32u);
|
||||||
uint2 ubo_load_4 = a[2].zw;
|
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_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));
|
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]);
|
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;
|
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];
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_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));
|
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)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
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;
|
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_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));
|
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);
|
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;
|
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) {
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_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));
|
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]));
|
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];
|
typedef matrix<float16_t, 2, 4> u_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
matrix<float16_t, 2, 4> arr[4] = (matrix<float16_t, 2, 4>[4])0;
|
matrix<float16_t, 2, 4> arr[4] = (matrix<float16_t, 2, 4>[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -43,8 +43,8 @@ tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
a(tint_symbol(u, 0u));
|
a(u_load(0u));
|
||||||
b(tint_symbol_1(u, 16u));
|
b(u_load_1(16u));
|
||||||
uint2 ubo_load_4 = u[1].xy;
|
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_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));
|
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);
|
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;
|
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;
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_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));
|
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]));
|
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];
|
typedef matrix<float16_t, 2, 4> u_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
matrix<float16_t, 2, 4> arr[4] = (matrix<float16_t, 2, 4>[4])0;
|
matrix<float16_t, 2, 4> arr[4] = (matrix<float16_t, 2, 4>[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -32,8 +32,8 @@ tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
p = tint_symbol(u, 0u);
|
p = u_load(0u);
|
||||||
p[1] = tint_symbol_1(u, 32u);
|
p[1] = u_load_1(32u);
|
||||||
uint2 ubo_load_4 = u[0].zw;
|
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_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));
|
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)));
|
p[1][0].x = float16_t(f16tof32(((u[0].z) & 0xFFFF)));
|
||||||
return;
|
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);
|
RWByteAddressBuffer s : register(u1, space0);
|
||||||
|
|
||||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 2, 4> value) {
|
void s_store_1(uint offset, matrix<float16_t, 2, 4> value) {
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
s.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
s.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 2, 4> value[4]) {
|
void s_store(uint offset, matrix<float16_t, 2, 4> value[4]) {
|
||||||
matrix<float16_t, 2, 4> array[4] = value;
|
matrix<float16_t, 2, 4> array_1[4] = value;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_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));
|
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]));
|
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];
|
typedef matrix<float16_t, 2, 4> u_load_ret[4];
|
||||||
tint_symbol_3_ret tint_symbol_3(uint4 buffer[4], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
matrix<float16_t, 2, 4> arr[4] = (matrix<float16_t, 2, 4>[4])0;
|
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)) {
|
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;
|
return arr;
|
||||||
|
@ -46,8 +46,8 @@ tint_symbol_3_ret tint_symbol_3(uint4 buffer[4], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
tint_symbol(s, 0u, tint_symbol_3(u, 0u));
|
s_store(0u, u_load(0u));
|
||||||
tint_symbol_1(s, 16u, tint_symbol_4(u, 32u));
|
s_store_1(16u, u_load_1(32u));
|
||||||
uint2 ubo_load_4 = u[0].zw;
|
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_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));
|
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))));
|
s.Store<float16_t>(16u, float16_t(f16tof32(((u[0].z) & 0xFFFF))));
|
||||||
return;
|
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;
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_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));
|
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]));
|
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];
|
typedef matrix<float16_t, 2, 4> u_load_ret[4];
|
||||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[4], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
matrix<float16_t, 2, 4> arr[4] = (matrix<float16_t, 2, 4>[4])0;
|
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)) {
|
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;
|
return arr;
|
||||||
|
@ -42,8 +42,8 @@ void f_inner(uint local_invocation_index) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
GroupMemoryBarrierWithGroupSync();
|
GroupMemoryBarrierWithGroupSync();
|
||||||
w = tint_symbol_2(u, 0u);
|
w = u_load(0u);
|
||||||
w[1] = tint_symbol_3(u, 32u);
|
w[1] = u_load_1(32u);
|
||||||
uint2 ubo_load_4 = u[0].zw;
|
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_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));
|
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);
|
f_inner(tint_symbol.local_invocation_index);
|
||||||
return;
|
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;
|
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;
|
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;
|
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;
|
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;
|
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))));
|
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];
|
typedef matrix<float16_t, 4, 2> a_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
a_load_ret a_load(uint offset) {
|
||||||
matrix<float16_t, 4, 2> arr[4] = (matrix<float16_t, 4, 2>[4])0;
|
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)) {
|
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;
|
return arr;
|
||||||
|
@ -37,13 +37,10 @@ tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||||
void f() {
|
void f() {
|
||||||
const int p_a_i_save = i();
|
const int p_a_i_save = i();
|
||||||
const int p_a_i_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[4] = a_load(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_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;
|
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];
|
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)));
|
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;
|
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];
|
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;
|
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;
|
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;
|
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;
|
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))));
|
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];
|
typedef matrix<float16_t, 4, 2> a_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
a_load_ret a_load(uint offset) {
|
||||||
matrix<float16_t, 4, 2> arr[4] = (matrix<float16_t, 4, 2>[4])0;
|
matrix<float16_t, 4, 2> arr[4] = (matrix<float16_t, 4, 2>[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -29,12 +29,9 @@ tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
const matrix<float16_t, 4, 2> l_a[4] = tint_symbol(a, 0u);
|
const matrix<float16_t, 4, 2> l_a[4] = a_load(0u);
|
||||||
const matrix<float16_t, 4, 2> l_a_i = tint_symbol_1(a, 32u);
|
const matrix<float16_t, 4, 2> l_a_i = a_load_1(32u);
|
||||||
uint ubo_load_4 = a[2].y;
|
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)));
|
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;
|
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];
|
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;
|
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;
|
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;
|
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;
|
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))));
|
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)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
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;
|
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);
|
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;
|
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);
|
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;
|
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) {
|
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;
|
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;
|
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;
|
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;
|
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))));
|
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];
|
typedef matrix<float16_t, 4, 2> u_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
matrix<float16_t, 4, 2> arr[4] = (matrix<float16_t, 4, 2>[4])0;
|
matrix<float16_t, 4, 2> arr[4] = (matrix<float16_t, 4, 2>[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -41,17 +41,11 @@ tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
a(tint_symbol(u, 0u));
|
a(u_load(0u));
|
||||||
b(tint_symbol_1(u, 16u));
|
b(u_load_1(16u));
|
||||||
uint ubo_load_4 = u[1].x;
|
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);
|
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;
|
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);
|
d(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_5 & 0xFFFF)), float16_t(f16tof32(ubo_load_5 >> 16))).yx.x);
|
||||||
return;
|
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;
|
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;
|
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;
|
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;
|
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;
|
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))));
|
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];
|
typedef matrix<float16_t, 4, 2> u_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
matrix<float16_t, 4, 2> arr[4] = (matrix<float16_t, 4, 2>[4])0;
|
matrix<float16_t, 4, 2> arr[4] = (matrix<float16_t, 4, 2>[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -30,13 +30,10 @@ tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
p = tint_symbol(u, 0u);
|
p = u_load(0u);
|
||||||
p[1] = tint_symbol_1(u, 32u);
|
p[1] = u_load_1(32u);
|
||||||
uint ubo_load_4 = u[0].y;
|
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] = 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)));
|
p[1][0].x = float16_t(f16tof32(((u[0].y) & 0xFFFF)));
|
||||||
return;
|
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);
|
RWByteAddressBuffer s : register(u1, space0);
|
||||||
|
|
||||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 4, 2> value) {
|
void s_store_1(uint offset, matrix<float16_t, 4, 2> value) {
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
s.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
s.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 8u), value[2u]);
|
s.Store<vector<float16_t, 2> >((offset + 8u), value[2u]);
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 12u), value[3u]);
|
s.Store<vector<float16_t, 2> >((offset + 12u), value[3u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 4, 2> value[4]) {
|
void s_store(uint offset, matrix<float16_t, 4, 2> value[4]) {
|
||||||
matrix<float16_t, 4, 2> array[4] = value;
|
matrix<float16_t, 4, 2> array_1[4] = value;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
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;
|
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;
|
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;
|
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))));
|
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];
|
typedef matrix<float16_t, 4, 2> u_load_ret[4];
|
||||||
tint_symbol_3_ret tint_symbol_3(uint4 buffer[4], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
matrix<float16_t, 4, 2> arr[4] = (matrix<float16_t, 4, 2>[4])0;
|
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)) {
|
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;
|
return arr;
|
||||||
|
@ -46,14 +46,10 @@ tint_symbol_3_ret tint_symbol_3(uint4 buffer[4], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
tint_symbol(s, 0u, tint_symbol_3(u, 0u));
|
s_store(0u, u_load(0u));
|
||||||
tint_symbol_1(s, 16u, tint_symbol_4(u, 32u));
|
s_store_1(16u, u_load_1(32u));
|
||||||
uint ubo_load_4 = u[0].y;
|
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<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))));
|
s.Store<float16_t>(16u, float16_t(f16tof32(((u[0].y) & 0xFFFF))));
|
||||||
return;
|
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;
|
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;
|
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;
|
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;
|
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;
|
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))));
|
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];
|
typedef matrix<float16_t, 4, 2> u_load_ret[4];
|
||||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[4], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
matrix<float16_t, 4, 2> arr[4] = (matrix<float16_t, 4, 2>[4])0;
|
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)) {
|
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;
|
return arr;
|
||||||
|
@ -40,8 +40,8 @@ void f_inner(uint local_invocation_index) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
GroupMemoryBarrierWithGroupSync();
|
GroupMemoryBarrierWithGroupSync();
|
||||||
w = tint_symbol_2(u, 0u);
|
w = u_load(0u);
|
||||||
w[1] = tint_symbol_3(u, 32u);
|
w[1] = u_load_1(32u);
|
||||||
uint ubo_load_4 = u[0].y;
|
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] = 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)));
|
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);
|
f_inner(tint_symbol.local_invocation_index);
|
||||||
return;
|
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;
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
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]));
|
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];
|
typedef matrix<float16_t, 4, 3> a_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
a_load_ret a_load(uint offset) {
|
||||||
matrix<float16_t, 4, 3> arr[4] = (matrix<float16_t, 4, 3>[4])0;
|
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)) {
|
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;
|
return arr;
|
||||||
|
@ -49,8 +49,8 @@ tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
||||||
void f() {
|
void f() {
|
||||||
const int p_a_i_save = i();
|
const int p_a_i_save = i();
|
||||||
const int p_a_i_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[4] = a_load(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_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;
|
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];
|
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);
|
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]);
|
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;
|
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];
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
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]));
|
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];
|
typedef matrix<float16_t, 4, 3> a_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
a_load_ret a_load(uint offset) {
|
||||||
matrix<float16_t, 4, 3> arr[4] = (matrix<float16_t, 4, 3>[4])0;
|
matrix<float16_t, 4, 3> arr[4] = (matrix<float16_t, 4, 3>[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -41,14 +41,11 @@ tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
const matrix<float16_t, 4, 3> l_a[4] = tint_symbol(a, 0u);
|
const matrix<float16_t, 4, 3> l_a[4] = a_load(0u);
|
||||||
const matrix<float16_t, 4, 3> l_a_i = tint_symbol_1(a, 64u);
|
const matrix<float16_t, 4, 3> l_a_i = a_load_1(64u);
|
||||||
uint2 ubo_load_8 = a[4].zw;
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||||
float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16);
|
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]);
|
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;
|
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];
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
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)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
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;
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||||
float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16);
|
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);
|
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;
|
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) {
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
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]));
|
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];
|
typedef matrix<float16_t, 4, 3> u_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
matrix<float16_t, 4, 3> arr[4] = (matrix<float16_t, 4, 3>[4])0;
|
matrix<float16_t, 4, 3> arr[4] = (matrix<float16_t, 4, 3>[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -53,8 +53,8 @@ tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
a(tint_symbol(u, 0u));
|
a(u_load(0u));
|
||||||
b(tint_symbol_1(u, 32u));
|
b(u_load_1(32u));
|
||||||
uint2 ubo_load_8 = u[2].xy;
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||||
float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16);
|
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);
|
d(vector<float16_t, 3>(ubo_load_9_xz[0], ubo_load_9_y, ubo_load_9_xz[1]).zxy.x);
|
||||||
return;
|
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;
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
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]));
|
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];
|
typedef matrix<float16_t, 4, 3> u_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
matrix<float16_t, 4, 3> arr[4] = (matrix<float16_t, 4, 3>[4])0;
|
matrix<float16_t, 4, 3> arr[4] = (matrix<float16_t, 4, 3>[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -42,8 +42,8 @@ tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
p = tint_symbol(u, 0u);
|
p = u_load(0u);
|
||||||
p[1] = tint_symbol_1(u, 64u);
|
p[1] = u_load_1(64u);
|
||||||
uint2 ubo_load_8 = u[0].zw;
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||||
float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16);
|
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)));
|
p[1][0].x = float16_t(f16tof32(((u[0].z) & 0xFFFF)));
|
||||||
return;
|
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);
|
RWByteAddressBuffer s : register(u1, space0);
|
||||||
|
|
||||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 4, 3> value) {
|
void s_store_1(uint offset, matrix<float16_t, 4, 3> value) {
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
s.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
s.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 16u), value[2u]);
|
s.Store<vector<float16_t, 3> >((offset + 16u), value[2u]);
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 24u), value[3u]);
|
s.Store<vector<float16_t, 3> >((offset + 24u), value[3u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 4, 3> value[4]) {
|
void s_store(uint offset, matrix<float16_t, 4, 3> value[4]) {
|
||||||
matrix<float16_t, 4, 3> array[4] = value;
|
matrix<float16_t, 4, 3> array_1[4] = value;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
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]));
|
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];
|
typedef matrix<float16_t, 4, 3> u_load_ret[4];
|
||||||
tint_symbol_3_ret tint_symbol_3(uint4 buffer[8], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
matrix<float16_t, 4, 3> arr[4] = (matrix<float16_t, 4, 3>[4])0;
|
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)) {
|
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;
|
return arr;
|
||||||
|
@ -58,8 +58,8 @@ tint_symbol_3_ret tint_symbol_3(uint4 buffer[8], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
tint_symbol(s, 0u, tint_symbol_3(u, 0u));
|
s_store(0u, u_load(0u));
|
||||||
tint_symbol_1(s, 32u, tint_symbol_4(u, 64u));
|
s_store_1(32u, u_load_1(64u));
|
||||||
uint2 ubo_load_8 = u[0].zw;
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||||
float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16);
|
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))));
|
s.Store<float16_t>(32u, float16_t(f16tof32(((u[0].z) & 0xFFFF))));
|
||||||
return;
|
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;
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
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]));
|
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];
|
typedef matrix<float16_t, 4, 3> u_load_ret[4];
|
||||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[8], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
matrix<float16_t, 4, 3> arr[4] = (matrix<float16_t, 4, 3>[4])0;
|
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)) {
|
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;
|
return arr;
|
||||||
|
@ -52,8 +52,8 @@ void f_inner(uint local_invocation_index) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
GroupMemoryBarrierWithGroupSync();
|
GroupMemoryBarrierWithGroupSync();
|
||||||
w = tint_symbol_2(u, 0u);
|
w = u_load(0u);
|
||||||
w[1] = tint_symbol_3(u, 64u);
|
w[1] = u_load_1(64u);
|
||||||
uint2 ubo_load_8 = u[0].zw;
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||||
float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16);
|
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);
|
f_inner(tint_symbol.local_invocation_index);
|
||||||
return;
|
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;
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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]));
|
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];
|
typedef matrix<float16_t, 4, 4> a_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
a_load_ret a_load(uint offset) {
|
||||||
matrix<float16_t, 4, 4> arr[4] = (matrix<float16_t, 4, 4>[4])0;
|
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)) {
|
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;
|
return arr;
|
||||||
|
@ -49,8 +49,8 @@ tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
||||||
void f() {
|
void f() {
|
||||||
const int p_a_i_save = i();
|
const int p_a_i_save = i();
|
||||||
const int p_a_i_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[4] = a_load(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_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;
|
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];
|
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);
|
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]);
|
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;
|
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];
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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]));
|
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];
|
typedef matrix<float16_t, 4, 4> a_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
a_load_ret a_load(uint offset) {
|
||||||
matrix<float16_t, 4, 4> arr[4] = (matrix<float16_t, 4, 4>[4])0;
|
matrix<float16_t, 4, 4> arr[4] = (matrix<float16_t, 4, 4>[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -41,14 +41,11 @@ tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
const matrix<float16_t, 4, 4> l_a[4] = tint_symbol(a, 0u);
|
const matrix<float16_t, 4, 4> l_a[4] = a_load(0u);
|
||||||
const matrix<float16_t, 4, 4> l_a_i = tint_symbol_1(a, 64u);
|
const matrix<float16_t, 4, 4> l_a_i = a_load_1(64u);
|
||||||
uint2 ubo_load_8 = a[4].zw;
|
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_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));
|
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]);
|
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;
|
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];
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
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;
|
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_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));
|
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);
|
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;
|
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) {
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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]));
|
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];
|
typedef matrix<float16_t, 4, 4> u_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
matrix<float16_t, 4, 4> arr[4] = (matrix<float16_t, 4, 4>[4])0;
|
matrix<float16_t, 4, 4> arr[4] = (matrix<float16_t, 4, 4>[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -53,8 +53,8 @@ tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
a(tint_symbol(u, 0u));
|
a(u_load(0u));
|
||||||
b(tint_symbol_1(u, 32u));
|
b(u_load_1(32u));
|
||||||
uint2 ubo_load_8 = u[2].xy;
|
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_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));
|
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);
|
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;
|
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;
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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]));
|
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];
|
typedef matrix<float16_t, 4, 4> u_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
matrix<float16_t, 4, 4> arr[4] = (matrix<float16_t, 4, 4>[4])0;
|
matrix<float16_t, 4, 4> arr[4] = (matrix<float16_t, 4, 4>[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -42,8 +42,8 @@ tint_symbol_ret tint_symbol(uint4 buffer[8], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
p = tint_symbol(u, 0u);
|
p = u_load(0u);
|
||||||
p[1] = tint_symbol_1(u, 64u);
|
p[1] = u_load_1(64u);
|
||||||
uint2 ubo_load_8 = u[0].zw;
|
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_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));
|
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)));
|
p[1][0].x = float16_t(f16tof32(((u[0].z) & 0xFFFF)));
|
||||||
return;
|
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);
|
RWByteAddressBuffer s : register(u1, space0);
|
||||||
|
|
||||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 4, 4> value) {
|
void s_store_1(uint offset, matrix<float16_t, 4, 4> value) {
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
s.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
s.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 16u), value[2u]);
|
s.Store<vector<float16_t, 4> >((offset + 16u), value[2u]);
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 24u), value[3u]);
|
s.Store<vector<float16_t, 4> >((offset + 24u), value[3u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 4, 4> value[4]) {
|
void s_store(uint offset, matrix<float16_t, 4, 4> value[4]) {
|
||||||
matrix<float16_t, 4, 4> array[4] = value;
|
matrix<float16_t, 4, 4> array_1[4] = value;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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]));
|
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];
|
typedef matrix<float16_t, 4, 4> u_load_ret[4];
|
||||||
tint_symbol_3_ret tint_symbol_3(uint4 buffer[8], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
matrix<float16_t, 4, 4> arr[4] = (matrix<float16_t, 4, 4>[4])0;
|
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)) {
|
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;
|
return arr;
|
||||||
|
@ -58,8 +58,8 @@ tint_symbol_3_ret tint_symbol_3(uint4 buffer[8], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
tint_symbol(s, 0u, tint_symbol_3(u, 0u));
|
s_store(0u, u_load(0u));
|
||||||
tint_symbol_1(s, 32u, tint_symbol_4(u, 64u));
|
s_store_1(32u, u_load_1(64u));
|
||||||
uint2 ubo_load_8 = u[0].zw;
|
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_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));
|
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))));
|
s.Store<float16_t>(32u, float16_t(f16tof32(((u[0].z) & 0xFFFF))));
|
||||||
return;
|
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;
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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]));
|
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];
|
typedef matrix<float16_t, 4, 4> u_load_ret[4];
|
||||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[8], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
matrix<float16_t, 4, 4> arr[4] = (matrix<float16_t, 4, 4>[4])0;
|
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)) {
|
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;
|
return arr;
|
||||||
|
@ -52,8 +52,8 @@ void f_inner(uint local_invocation_index) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
GroupMemoryBarrierWithGroupSync();
|
GroupMemoryBarrierWithGroupSync();
|
||||||
w = tint_symbol_2(u, 0u);
|
w = u_load(0u);
|
||||||
w[1] = tint_symbol_3(u, 64u);
|
w[1] = u_load_1(64u);
|
||||||
uint2 ubo_load_8 = u[0].zw;
|
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_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));
|
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);
|
f_inner(tint_symbol.local_invocation_index);
|
||||||
return;
|
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;
|
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;
|
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;
|
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))));
|
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) {
|
Inner a_load_3(uint offset) {
|
||||||
const Inner tint_symbol_11 = {tint_symbol_8(buffer, (offset + 0u))};
|
const Inner tint_symbol_4 = {a_load_4((offset + 0u))};
|
||||||
return tint_symbol_11;
|
return tint_symbol_4;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef Inner tint_symbol_6_ret[4];
|
typedef Inner a_load_2_ret[4];
|
||||||
tint_symbol_6_ret tint_symbol_6(uint4 buffer[64], uint offset) {
|
a_load_2_ret a_load_2(uint offset) {
|
||||||
Inner arr[4] = (Inner[4])0;
|
Inner arr[4] = (Inner[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
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;
|
return arr;
|
||||||
}
|
}
|
||||||
|
|
||||||
Outer tint_symbol_5(uint4 buffer[64], uint offset) {
|
Outer a_load_1(uint offset) {
|
||||||
const Outer tint_symbol_12 = {tint_symbol_6(buffer, (offset + 0u))};
|
const Outer tint_symbol_5 = {a_load_2((offset + 0u))};
|
||||||
return tint_symbol_12;
|
return tint_symbol_5;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef Outer tint_symbol_4_ret[4];
|
typedef Outer a_load_ret[4];
|
||||||
tint_symbol_4_ret tint_symbol_4(uint4 buffer[64], uint offset) {
|
a_load_ret a_load(uint offset) {
|
||||||
Outer arr_1[4] = (Outer[4])0;
|
Outer arr_1[4] = (Outer[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_2 = 0u; (i_2 < 4u); i_2 = (i_2 + 1u)) {
|
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;
|
return arr_1;
|
||||||
|
@ -62,11 +62,11 @@ void f() {
|
||||||
const int p_a_i_save = i();
|
const int p_a_i_save = i();
|
||||||
const int p_a_i_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 int p_a_i_a_i_m_i_save = i();
|
||||||
const Outer l_a[4] = tint_symbol_4(a, 0u);
|
const Outer l_a[4] = a_load(0u);
|
||||||
const Outer l_a_i = tint_symbol_5(a, (256u * uint(p_a_i_save)));
|
const Outer l_a_i = a_load_1((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[4] = a_load_2((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 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 = tint_symbol_8(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 = 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;
|
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];
|
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)));
|
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)));
|
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;
|
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];
|
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;
|
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;
|
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))));
|
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) {
|
Inner a_load_3(uint offset) {
|
||||||
const Inner tint_symbol_7 = {tint_symbol_4(buffer, (offset + 0u))};
|
const Inner tint_symbol = {a_load_4((offset + 0u))};
|
||||||
return tint_symbol_7;
|
return tint_symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef Inner tint_symbol_2_ret[4];
|
typedef Inner a_load_2_ret[4];
|
||||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[64], uint offset) {
|
a_load_2_ret a_load_2(uint offset) {
|
||||||
Inner arr[4] = (Inner[4])0;
|
Inner arr[4] = (Inner[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
}
|
}
|
||||||
|
|
||||||
Outer tint_symbol_1(uint4 buffer[64], uint offset) {
|
Outer a_load_1(uint offset) {
|
||||||
const Outer tint_symbol_8 = {tint_symbol_2(buffer, (offset + 0u))};
|
const Outer tint_symbol_1 = {a_load_2((offset + 0u))};
|
||||||
return tint_symbol_8;
|
return tint_symbol_1;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef Outer tint_symbol_ret[4];
|
typedef Outer a_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
a_load_ret a_load(uint offset) {
|
||||||
Outer arr_1[4] = (Outer[4])0;
|
Outer arr_1[4] = (Outer[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
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;
|
return arr_1;
|
||||||
|
@ -53,16 +53,13 @@ tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
const Outer l_a[4] = tint_symbol(a, 0u);
|
const Outer l_a[4] = a_load(0u);
|
||||||
const Outer l_a_3 = tint_symbol_1(a, 768u);
|
const Outer l_a_3 = a_load_1(768u);
|
||||||
const Inner l_a_3_a[4] = tint_symbol_2(a, 768u);
|
const Inner l_a_3_a[4] = a_load_2(768u);
|
||||||
const Inner l_a_3_a_2 = tint_symbol_3(a, 896u);
|
const Inner l_a_3_a_2 = a_load_3(896u);
|
||||||
const matrix<float16_t, 2, 2> l_a_3_a_2_m = tint_symbol_4(a, 896u);
|
const matrix<float16_t, 2, 2> l_a_3_a_2_m = a_load_4(896u);
|
||||||
uint ubo_load_2 = a[56].y;
|
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 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)));
|
const float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].y) & 0xFFFF)));
|
||||||
return;
|
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];
|
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;
|
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;
|
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))));
|
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)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
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;
|
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);
|
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;
|
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);
|
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;
|
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) {
|
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;
|
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;
|
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))));
|
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_2 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_3 = ((offset + 64u)) / 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])};
|
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_5;
|
return tint_symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef S tint_symbol_ret[4];
|
typedef S u_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
S arr[4] = (S[4])0;
|
S arr[4] = (S[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -53,15 +53,12 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
a(tint_symbol(u, 0u));
|
a(u_load(0u));
|
||||||
b(tint_symbol_1(u, 256u));
|
b(u_load_1(256u));
|
||||||
c(tint_symbol_3(u, 260u));
|
c(u_load_3(260u));
|
||||||
uint ubo_load_2 = u[0].z;
|
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);
|
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;
|
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);
|
e(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))).yx.x);
|
||||||
return;
|
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;
|
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;
|
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;
|
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))));
|
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_2 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_3 = ((offset + 64u)) / 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])};
|
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_5;
|
return tint_symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef S tint_symbol_ret[4];
|
typedef S u_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
S arr[4] = (S[4])0;
|
S arr[4] = (S[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -39,13 +39,10 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
p = tint_symbol(u, 0u);
|
p = u_load(0u);
|
||||||
p[1] = tint_symbol_1(u, 256u);
|
p[1] = u_load_1(256u);
|
||||||
p[3].m = tint_symbol_3(u, 260u);
|
p[3].m = u_load_3(260u);
|
||||||
uint ubo_load_2 = u[0].z;
|
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;
|
p[1].m[0] = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))).yx;
|
||||||
return;
|
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);
|
RWByteAddressBuffer s : register(u1, space0);
|
||||||
|
|
||||||
void tint_symbol_3(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 2, 2> value) {
|
void s_store_3(uint offset, matrix<float16_t, 2, 2> value) {
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
s.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
s.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, S value) {
|
void s_store_1(uint offset, S value) {
|
||||||
buffer.Store((offset + 0u), asuint(value.before));
|
s.Store((offset + 0u), asuint(value.before));
|
||||||
tint_symbol_3(buffer, (offset + 4u), value.m);
|
s_store_3((offset + 4u), value.m);
|
||||||
buffer.Store((offset + 64u), asuint(value.after));
|
s.Store((offset + 64u), asuint(value.after));
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol(RWByteAddressBuffer buffer, uint offset, S value[4]) {
|
void s_store(uint offset, S value[4]) {
|
||||||
S array[4] = value;
|
S array_1[4] = value;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
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;
|
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))));
|
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_2 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_3 = ((offset + 64u)) / 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])};
|
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_10;
|
return tint_symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef S tint_symbol_5_ret[4];
|
typedef S u_load_ret[4];
|
||||||
tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
S arr[4] = (S[4])0;
|
S arr[4] = (S[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -59,13 +59,10 @@ tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
tint_symbol(s, 0u, tint_symbol_5(u, 0u));
|
s_store(0u, u_load(0u));
|
||||||
tint_symbol_1(s, 128u, tint_symbol_6(u, 256u));
|
s_store_1(128u, u_load_1(256u));
|
||||||
tint_symbol_3(s, 388u, tint_symbol_8(u, 260u));
|
s_store_3(388u, u_load_3(260u));
|
||||||
uint ubo_load_2 = u[0].z;
|
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);
|
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;
|
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;
|
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;
|
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;
|
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))));
|
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_2 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_3 = ((offset + 64u)) / 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])};
|
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_8;
|
return tint_symbol_3;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef S tint_symbol_2_ret[4];
|
typedef S u_load_ret[4];
|
||||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[32], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
S arr[4] = (S[4])0;
|
S arr[4] = (S[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -45,14 +45,14 @@ void f_inner(uint local_invocation_index) {
|
||||||
{
|
{
|
||||||
for(uint idx = local_invocation_index; (idx < 4u); idx = (idx + 1u)) {
|
for(uint idx = local_invocation_index; (idx < 4u); idx = (idx + 1u)) {
|
||||||
const uint i = idx;
|
const uint i = idx;
|
||||||
const S tint_symbol_7 = (S)0;
|
const S tint_symbol_2 = (S)0;
|
||||||
w[i] = tint_symbol_7;
|
w[i] = tint_symbol_2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
GroupMemoryBarrierWithGroupSync();
|
GroupMemoryBarrierWithGroupSync();
|
||||||
w = tint_symbol_2(u, 0u);
|
w = u_load(0u);
|
||||||
w[1] = tint_symbol_3(u, 256u);
|
w[1] = u_load_1(256u);
|
||||||
w[3].m = tint_symbol_5(u, 260u);
|
w[3].m = u_load_3(260u);
|
||||||
uint ubo_load_2 = u[0].z;
|
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;
|
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);
|
f_inner(tint_symbol.local_invocation_index);
|
||||||
return;
|
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;
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
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]));
|
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) {
|
Inner a_load_3(uint offset) {
|
||||||
const Inner tint_symbol_11 = {tint_symbol_8(buffer, (offset + 0u))};
|
const Inner tint_symbol_4 = {a_load_4((offset + 0u))};
|
||||||
return tint_symbol_11;
|
return tint_symbol_4;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef Inner tint_symbol_6_ret[4];
|
typedef Inner a_load_2_ret[4];
|
||||||
tint_symbol_6_ret tint_symbol_6(uint4 buffer[64], uint offset) {
|
a_load_2_ret a_load_2(uint offset) {
|
||||||
Inner arr[4] = (Inner[4])0;
|
Inner arr[4] = (Inner[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
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;
|
return arr;
|
||||||
}
|
}
|
||||||
|
|
||||||
Outer tint_symbol_5(uint4 buffer[64], uint offset) {
|
Outer a_load_1(uint offset) {
|
||||||
const Outer tint_symbol_12 = {tint_symbol_6(buffer, (offset + 0u))};
|
const Outer tint_symbol_5 = {a_load_2((offset + 0u))};
|
||||||
return tint_symbol_12;
|
return tint_symbol_5;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef Outer tint_symbol_4_ret[4];
|
typedef Outer a_load_ret[4];
|
||||||
tint_symbol_4_ret tint_symbol_4(uint4 buffer[64], uint offset) {
|
a_load_ret a_load(uint offset) {
|
||||||
Outer arr_1[4] = (Outer[4])0;
|
Outer arr_1[4] = (Outer[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_2 = 0u; (i_2 < 4u); i_2 = (i_2 + 1u)) {
|
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;
|
return arr_1;
|
||||||
|
@ -68,11 +68,11 @@ void f() {
|
||||||
const int p_a_i_save = i();
|
const int p_a_i_save = i();
|
||||||
const int p_a_i_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 int p_a_i_a_i_m_i_save = i();
|
||||||
const Outer l_a[4] = tint_symbol_4(a, 0u);
|
const Outer l_a[4] = a_load(0u);
|
||||||
const Outer l_a_i = tint_symbol_5(a, (256u * uint(p_a_i_save)));
|
const Outer l_a_i = a_load_1((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[4] = a_load_2((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 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 = tint_symbol_8(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 = 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;
|
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];
|
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);
|
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)));
|
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;
|
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];
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
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]));
|
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) {
|
Inner a_load_3(uint offset) {
|
||||||
const Inner tint_symbol_7 = {tint_symbol_4(buffer, (offset + 0u))};
|
const Inner tint_symbol = {a_load_4((offset + 0u))};
|
||||||
return tint_symbol_7;
|
return tint_symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef Inner tint_symbol_2_ret[4];
|
typedef Inner a_load_2_ret[4];
|
||||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[64], uint offset) {
|
a_load_2_ret a_load_2(uint offset) {
|
||||||
Inner arr[4] = (Inner[4])0;
|
Inner arr[4] = (Inner[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
}
|
}
|
||||||
|
|
||||||
Outer tint_symbol_1(uint4 buffer[64], uint offset) {
|
Outer a_load_1(uint offset) {
|
||||||
const Outer tint_symbol_8 = {tint_symbol_2(buffer, (offset + 0u))};
|
const Outer tint_symbol_1 = {a_load_2((offset + 0u))};
|
||||||
return tint_symbol_8;
|
return tint_symbol_1;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef Outer tint_symbol_ret[4];
|
typedef Outer a_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
a_load_ret a_load(uint offset) {
|
||||||
Outer arr_1[4] = (Outer[4])0;
|
Outer arr_1[4] = (Outer[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
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;
|
return arr_1;
|
||||||
|
@ -59,11 +59,11 @@ tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
const Outer l_a[4] = tint_symbol(a, 0u);
|
const Outer l_a[4] = a_load(0u);
|
||||||
const Outer l_a_3 = tint_symbol_1(a, 768u);
|
const Outer l_a_3 = a_load_1(768u);
|
||||||
const Inner l_a_3_a[4] = tint_symbol_2(a, 768u);
|
const Inner l_a_3_a[4] = a_load_2(768u);
|
||||||
const Inner l_a_3_a_2 = tint_symbol_3(a, 896u);
|
const Inner l_a_3_a_2 = a_load_3(896u);
|
||||||
const matrix<float16_t, 2, 3> l_a_3_a_2_m = tint_symbol_4(a, 896u);
|
const matrix<float16_t, 2, 3> l_a_3_a_2_m = a_load_4(896u);
|
||||||
uint2 ubo_load_4 = a[56].zw;
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
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)));
|
const float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].z) & 0xFFFF)));
|
||||||
return;
|
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];
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
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)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
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;
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
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);
|
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;
|
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) {
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
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]));
|
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_2 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_3 = ((offset + 64u)) / 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])};
|
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_5;
|
return tint_symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef S tint_symbol_ret[4];
|
typedef S u_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
S arr[4] = (S[4])0;
|
S arr[4] = (S[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -59,9 +59,9 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
a(tint_symbol(u, 0u));
|
a(u_load(0u));
|
||||||
b(tint_symbol_1(u, 256u));
|
b(u_load_1(256u));
|
||||||
c(tint_symbol_3(u, 264u));
|
c(u_load_3(264u));
|
||||||
uint2 ubo_load_4 = u[1].xy;
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
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);
|
e(vector<float16_t, 3>(ubo_load_5_xz[0], ubo_load_5_y, ubo_load_5_xz[1]).zxy.x);
|
||||||
return;
|
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;
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
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]));
|
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_2 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_3 = ((offset + 64u)) / 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])};
|
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_5;
|
return tint_symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef S tint_symbol_ret[4];
|
typedef S u_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
S arr[4] = (S[4])0;
|
S arr[4] = (S[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -45,15 +45,12 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
p = tint_symbol(u, 0u);
|
p = u_load(0u);
|
||||||
p[1] = tint_symbol_1(u, 256u);
|
p[1] = u_load_1(256u);
|
||||||
p[3].m = tint_symbol_3(u, 264u);
|
p[3].m = u_load_3(264u);
|
||||||
uint2 ubo_load_4 = u[1].xy;
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
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;
|
p[1].m[0] = vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]).zxy;
|
||||||
return;
|
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);
|
RWByteAddressBuffer s : register(u1, space0);
|
||||||
|
|
||||||
void tint_symbol_3(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 2, 3> value) {
|
void s_store_3(uint offset, matrix<float16_t, 2, 3> value) {
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
s.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
s.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, S value) {
|
void s_store_1(uint offset, S value) {
|
||||||
buffer.Store((offset + 0u), asuint(value.before));
|
s.Store((offset + 0u), asuint(value.before));
|
||||||
tint_symbol_3(buffer, (offset + 8u), value.m);
|
s_store_3((offset + 8u), value.m);
|
||||||
buffer.Store((offset + 64u), asuint(value.after));
|
s.Store((offset + 64u), asuint(value.after));
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol(RWByteAddressBuffer buffer, uint offset, S value[4]) {
|
void s_store(uint offset, S value[4]) {
|
||||||
S array[4] = value;
|
S array_1[4] = value;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
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]));
|
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_2 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_3 = ((offset + 64u)) / 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])};
|
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_10;
|
return tint_symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef S tint_symbol_5_ret[4];
|
typedef S u_load_ret[4];
|
||||||
tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
S arr[4] = (S[4])0;
|
S arr[4] = (S[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -65,15 +65,12 @@ tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
tint_symbol(s, 0u, tint_symbol_5(u, 0u));
|
s_store(0u, u_load(0u));
|
||||||
tint_symbol_1(s, 128u, tint_symbol_6(u, 256u));
|
s_store_1(128u, u_load_1(256u));
|
||||||
tint_symbol_3(s, 392u, tint_symbol_8(u, 264u));
|
s_store_3(392u, u_load_3(264u));
|
||||||
uint2 ubo_load_4 = u[1].xy;
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
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);
|
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;
|
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;
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
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]));
|
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_2 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_3 = ((offset + 64u)) / 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])};
|
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_8;
|
return tint_symbol_3;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef S tint_symbol_2_ret[4];
|
typedef S u_load_ret[4];
|
||||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[32], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
S arr[4] = (S[4])0;
|
S arr[4] = (S[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -51,14 +51,14 @@ void f_inner(uint local_invocation_index) {
|
||||||
{
|
{
|
||||||
for(uint idx = local_invocation_index; (idx < 4u); idx = (idx + 1u)) {
|
for(uint idx = local_invocation_index; (idx < 4u); idx = (idx + 1u)) {
|
||||||
const uint i = idx;
|
const uint i = idx;
|
||||||
const S tint_symbol_7 = (S)0;
|
const S tint_symbol_2 = (S)0;
|
||||||
w[i] = tint_symbol_7;
|
w[i] = tint_symbol_2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
GroupMemoryBarrierWithGroupSync();
|
GroupMemoryBarrierWithGroupSync();
|
||||||
w = tint_symbol_2(u, 0u);
|
w = u_load(0u);
|
||||||
w[1] = tint_symbol_3(u, 256u);
|
w[1] = u_load_1(256u);
|
||||||
w[3].m = tint_symbol_5(u, 264u);
|
w[3].m = u_load_3(264u);
|
||||||
uint2 ubo_load_4 = u[1].xy;
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
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);
|
f_inner(tint_symbol.local_invocation_index);
|
||||||
return;
|
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;
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_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));
|
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]));
|
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) {
|
Inner a_load_3(uint offset) {
|
||||||
const Inner tint_symbol_11 = {tint_symbol_8(buffer, (offset + 0u))};
|
const Inner tint_symbol_4 = {a_load_4((offset + 0u))};
|
||||||
return tint_symbol_11;
|
return tint_symbol_4;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef Inner tint_symbol_6_ret[4];
|
typedef Inner a_load_2_ret[4];
|
||||||
tint_symbol_6_ret tint_symbol_6(uint4 buffer[64], uint offset) {
|
a_load_2_ret a_load_2(uint offset) {
|
||||||
Inner arr[4] = (Inner[4])0;
|
Inner arr[4] = (Inner[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
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;
|
return arr;
|
||||||
}
|
}
|
||||||
|
|
||||||
Outer tint_symbol_5(uint4 buffer[64], uint offset) {
|
Outer a_load_1(uint offset) {
|
||||||
const Outer tint_symbol_12 = {tint_symbol_6(buffer, (offset + 0u))};
|
const Outer tint_symbol_5 = {a_load_2((offset + 0u))};
|
||||||
return tint_symbol_12;
|
return tint_symbol_5;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef Outer tint_symbol_4_ret[4];
|
typedef Outer a_load_ret[4];
|
||||||
tint_symbol_4_ret tint_symbol_4(uint4 buffer[64], uint offset) {
|
a_load_ret a_load(uint offset) {
|
||||||
Outer arr_1[4] = (Outer[4])0;
|
Outer arr_1[4] = (Outer[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_2 = 0u; (i_2 < 4u); i_2 = (i_2 + 1u)) {
|
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;
|
return arr_1;
|
||||||
|
@ -68,11 +68,11 @@ void f() {
|
||||||
const int p_a_i_save = i();
|
const int p_a_i_save = i();
|
||||||
const int p_a_i_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 int p_a_i_a_i_m_i_save = i();
|
||||||
const Outer l_a[4] = tint_symbol_4(a, 0u);
|
const Outer l_a[4] = a_load(0u);
|
||||||
const Outer l_a_i = tint_symbol_5(a, (256u * uint(p_a_i_save)));
|
const Outer l_a_i = a_load_1((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[4] = a_load_2((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 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 = tint_symbol_8(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 = 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;
|
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];
|
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);
|
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)));
|
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;
|
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];
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_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));
|
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]));
|
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) {
|
Inner a_load_3(uint offset) {
|
||||||
const Inner tint_symbol_7 = {tint_symbol_4(buffer, (offset + 0u))};
|
const Inner tint_symbol = {a_load_4((offset + 0u))};
|
||||||
return tint_symbol_7;
|
return tint_symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef Inner tint_symbol_2_ret[4];
|
typedef Inner a_load_2_ret[4];
|
||||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[64], uint offset) {
|
a_load_2_ret a_load_2(uint offset) {
|
||||||
Inner arr[4] = (Inner[4])0;
|
Inner arr[4] = (Inner[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
}
|
}
|
||||||
|
|
||||||
Outer tint_symbol_1(uint4 buffer[64], uint offset) {
|
Outer a_load_1(uint offset) {
|
||||||
const Outer tint_symbol_8 = {tint_symbol_2(buffer, (offset + 0u))};
|
const Outer tint_symbol_1 = {a_load_2((offset + 0u))};
|
||||||
return tint_symbol_8;
|
return tint_symbol_1;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef Outer tint_symbol_ret[4];
|
typedef Outer a_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
a_load_ret a_load(uint offset) {
|
||||||
Outer arr_1[4] = (Outer[4])0;
|
Outer arr_1[4] = (Outer[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
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;
|
return arr_1;
|
||||||
|
@ -59,11 +59,11 @@ tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
const Outer l_a[4] = tint_symbol(a, 0u);
|
const Outer l_a[4] = a_load(0u);
|
||||||
const Outer l_a_3 = tint_symbol_1(a, 768u);
|
const Outer l_a_3 = a_load_1(768u);
|
||||||
const Inner l_a_3_a[4] = tint_symbol_2(a, 768u);
|
const Inner l_a_3_a[4] = a_load_2(768u);
|
||||||
const Inner l_a_3_a_2 = tint_symbol_3(a, 896u);
|
const Inner l_a_3_a_2 = a_load_3(896u);
|
||||||
const matrix<float16_t, 2, 4> l_a_3_a_2_m = tint_symbol_4(a, 896u);
|
const matrix<float16_t, 2, 4> l_a_3_a_2_m = a_load_4(896u);
|
||||||
uint2 ubo_load_4 = a[56].zw;
|
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_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));
|
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)));
|
const float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].z) & 0xFFFF)));
|
||||||
return;
|
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];
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_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));
|
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)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
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;
|
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_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));
|
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);
|
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;
|
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) {
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_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));
|
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]));
|
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_2 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_3 = ((offset + 64u)) / 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])};
|
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_5;
|
return tint_symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef S tint_symbol_ret[4];
|
typedef S u_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
S arr[4] = (S[4])0;
|
S arr[4] = (S[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -59,9 +59,9 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
a(tint_symbol(u, 0u));
|
a(u_load(0u));
|
||||||
b(tint_symbol_1(u, 256u));
|
b(u_load_1(256u));
|
||||||
c(tint_symbol_3(u, 264u));
|
c(u_load_3(264u));
|
||||||
uint2 ubo_load_4 = u[1].xy;
|
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_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));
|
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);
|
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;
|
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;
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_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));
|
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]));
|
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_2 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_3 = ((offset + 64u)) / 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])};
|
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_5;
|
return tint_symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef S tint_symbol_ret[4];
|
typedef S u_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
S arr[4] = (S[4])0;
|
S arr[4] = (S[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -45,15 +45,12 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
p = tint_symbol(u, 0u);
|
p = u_load(0u);
|
||||||
p[1] = tint_symbol_1(u, 256u);
|
p[1] = u_load_1(256u);
|
||||||
p[3].m = tint_symbol_3(u, 264u);
|
p[3].m = u_load_3(264u);
|
||||||
uint2 ubo_load_4 = u[1].xy;
|
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_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));
|
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;
|
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;
|
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);
|
RWByteAddressBuffer s : register(u1, space0);
|
||||||
|
|
||||||
void tint_symbol_3(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 2, 4> value) {
|
void s_store_3(uint offset, matrix<float16_t, 2, 4> value) {
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
s.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
s.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, S value) {
|
void s_store_1(uint offset, S value) {
|
||||||
buffer.Store((offset + 0u), asuint(value.before));
|
s.Store((offset + 0u), asuint(value.before));
|
||||||
tint_symbol_3(buffer, (offset + 8u), value.m);
|
s_store_3((offset + 8u), value.m);
|
||||||
buffer.Store((offset + 64u), asuint(value.after));
|
s.Store((offset + 64u), asuint(value.after));
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol(RWByteAddressBuffer buffer, uint offset, S value[4]) {
|
void s_store(uint offset, S value[4]) {
|
||||||
S array[4] = value;
|
S array_1[4] = value;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_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));
|
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]));
|
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_2 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_3 = ((offset + 64u)) / 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])};
|
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_10;
|
return tint_symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef S tint_symbol_5_ret[4];
|
typedef S u_load_ret[4];
|
||||||
tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
S arr[4] = (S[4])0;
|
S arr[4] = (S[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -65,15 +65,12 @@ tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
tint_symbol(s, 0u, tint_symbol_5(u, 0u));
|
s_store(0u, u_load(0u));
|
||||||
tint_symbol_1(s, 128u, tint_symbol_6(u, 256u));
|
s_store_1(128u, u_load_1(256u));
|
||||||
tint_symbol_3(s, 392u, tint_symbol_8(u, 264u));
|
s_store_3(392u, u_load_3(264u));
|
||||||
uint2 ubo_load_4 = u[1].xy;
|
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_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));
|
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);
|
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;
|
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;
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_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));
|
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]));
|
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_2 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_3 = ((offset + 64u)) / 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])};
|
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_8;
|
return tint_symbol_3;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef S tint_symbol_2_ret[4];
|
typedef S u_load_ret[4];
|
||||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[32], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
S arr[4] = (S[4])0;
|
S arr[4] = (S[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -51,14 +51,14 @@ void f_inner(uint local_invocation_index) {
|
||||||
{
|
{
|
||||||
for(uint idx = local_invocation_index; (idx < 4u); idx = (idx + 1u)) {
|
for(uint idx = local_invocation_index; (idx < 4u); idx = (idx + 1u)) {
|
||||||
const uint i = idx;
|
const uint i = idx;
|
||||||
const S tint_symbol_7 = (S)0;
|
const S tint_symbol_2 = (S)0;
|
||||||
w[i] = tint_symbol_7;
|
w[i] = tint_symbol_2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
GroupMemoryBarrierWithGroupSync();
|
GroupMemoryBarrierWithGroupSync();
|
||||||
w = tint_symbol_2(u, 0u);
|
w = u_load(0u);
|
||||||
w[1] = tint_symbol_3(u, 256u);
|
w[1] = u_load_1(256u);
|
||||||
w[3].m = tint_symbol_5(u, 264u);
|
w[3].m = u_load_3(264u);
|
||||||
uint2 ubo_load_4 = u[1].xy;
|
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_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));
|
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);
|
f_inner(tint_symbol.local_invocation_index);
|
||||||
return;
|
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;
|
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;
|
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;
|
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;
|
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))));
|
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) {
|
Inner a_load_3(uint offset) {
|
||||||
const Inner tint_symbol_11 = {tint_symbol_8(buffer, (offset + 0u))};
|
const Inner tint_symbol_4 = {a_load_4((offset + 0u))};
|
||||||
return tint_symbol_11;
|
return tint_symbol_4;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef Inner tint_symbol_6_ret[4];
|
typedef Inner a_load_2_ret[4];
|
||||||
tint_symbol_6_ret tint_symbol_6(uint4 buffer[64], uint offset) {
|
a_load_2_ret a_load_2(uint offset) {
|
||||||
Inner arr[4] = (Inner[4])0;
|
Inner arr[4] = (Inner[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
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;
|
return arr;
|
||||||
}
|
}
|
||||||
|
|
||||||
Outer tint_symbol_5(uint4 buffer[64], uint offset) {
|
Outer a_load_1(uint offset) {
|
||||||
const Outer tint_symbol_12 = {tint_symbol_6(buffer, (offset + 0u))};
|
const Outer tint_symbol_5 = {a_load_2((offset + 0u))};
|
||||||
return tint_symbol_12;
|
return tint_symbol_5;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef Outer tint_symbol_4_ret[4];
|
typedef Outer a_load_ret[4];
|
||||||
tint_symbol_4_ret tint_symbol_4(uint4 buffer[64], uint offset) {
|
a_load_ret a_load(uint offset) {
|
||||||
Outer arr_1[4] = (Outer[4])0;
|
Outer arr_1[4] = (Outer[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_2 = 0u; (i_2 < 4u); i_2 = (i_2 + 1u)) {
|
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;
|
return arr_1;
|
||||||
|
@ -64,11 +64,11 @@ void f() {
|
||||||
const int p_a_i_save = i();
|
const int p_a_i_save = i();
|
||||||
const int p_a_i_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 int p_a_i_a_i_m_i_save = i();
|
||||||
const Outer l_a[4] = tint_symbol_4(a, 0u);
|
const Outer l_a[4] = a_load(0u);
|
||||||
const Outer l_a_i = tint_symbol_5(a, (256u * uint(p_a_i_save)));
|
const Outer l_a_i = a_load_1((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[4] = a_load_2((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 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 = tint_symbol_8(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 = 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;
|
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];
|
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)));
|
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)));
|
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;
|
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];
|
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;
|
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;
|
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;
|
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))));
|
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) {
|
Inner a_load_3(uint offset) {
|
||||||
const Inner tint_symbol_7 = {tint_symbol_4(buffer, (offset + 0u))};
|
const Inner tint_symbol = {a_load_4((offset + 0u))};
|
||||||
return tint_symbol_7;
|
return tint_symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef Inner tint_symbol_2_ret[4];
|
typedef Inner a_load_2_ret[4];
|
||||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[64], uint offset) {
|
a_load_2_ret a_load_2(uint offset) {
|
||||||
Inner arr[4] = (Inner[4])0;
|
Inner arr[4] = (Inner[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
}
|
}
|
||||||
|
|
||||||
Outer tint_symbol_1(uint4 buffer[64], uint offset) {
|
Outer a_load_1(uint offset) {
|
||||||
const Outer tint_symbol_8 = {tint_symbol_2(buffer, (offset + 0u))};
|
const Outer tint_symbol_1 = {a_load_2((offset + 0u))};
|
||||||
return tint_symbol_8;
|
return tint_symbol_1;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef Outer tint_symbol_ret[4];
|
typedef Outer a_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
a_load_ret a_load(uint offset) {
|
||||||
Outer arr_1[4] = (Outer[4])0;
|
Outer arr_1[4] = (Outer[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
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;
|
return arr_1;
|
||||||
|
@ -55,16 +55,13 @@ tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
const Outer l_a[4] = tint_symbol(a, 0u);
|
const Outer l_a[4] = a_load(0u);
|
||||||
const Outer l_a_3 = tint_symbol_1(a, 768u);
|
const Outer l_a_3 = a_load_1(768u);
|
||||||
const Inner l_a_3_a[4] = tint_symbol_2(a, 768u);
|
const Inner l_a_3_a[4] = a_load_2(768u);
|
||||||
const Inner l_a_3_a_2 = tint_symbol_3(a, 896u);
|
const Inner l_a_3_a_2 = a_load_3(896u);
|
||||||
const matrix<float16_t, 3, 2> l_a_3_a_2_m = tint_symbol_4(a, 896u);
|
const matrix<float16_t, 3, 2> l_a_3_a_2_m = a_load_4(896u);
|
||||||
uint ubo_load_3 = a[56].y;
|
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 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)));
|
const float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].y) & 0xFFFF)));
|
||||||
return;
|
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];
|
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;
|
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;
|
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;
|
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))));
|
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)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
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;
|
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);
|
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;
|
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);
|
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;
|
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) {
|
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;
|
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;
|
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;
|
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))));
|
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_3 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_4 = ((offset + 64u)) / 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])};
|
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_5;
|
return tint_symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef S tint_symbol_ret[4];
|
typedef S u_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
S arr[4] = (S[4])0;
|
S arr[4] = (S[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -55,15 +55,12 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
a(tint_symbol(u, 0u));
|
a(u_load(0u));
|
||||||
b(tint_symbol_1(u, 256u));
|
b(u_load_1(256u));
|
||||||
c(tint_symbol_3(u, 260u));
|
c(u_load_3(260u));
|
||||||
uint ubo_load_3 = u[0].z;
|
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);
|
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;
|
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);
|
e(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx.x);
|
||||||
return;
|
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;
|
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;
|
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;
|
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;
|
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))));
|
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_3 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_4 = ((offset + 64u)) / 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])};
|
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_5;
|
return tint_symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef S tint_symbol_ret[4];
|
typedef S u_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
S arr[4] = (S[4])0;
|
S arr[4] = (S[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -41,13 +41,10 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
p = tint_symbol(u, 0u);
|
p = u_load(0u);
|
||||||
p[1] = tint_symbol_1(u, 256u);
|
p[1] = u_load_1(256u);
|
||||||
p[3].m = tint_symbol_3(u, 260u);
|
p[3].m = u_load_3(260u);
|
||||||
uint ubo_load_3 = u[0].z;
|
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;
|
p[1].m[0] = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))).yx;
|
||||||
return;
|
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);
|
RWByteAddressBuffer s : register(u1, space0);
|
||||||
|
|
||||||
void tint_symbol_3(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 3, 2> value) {
|
void s_store_3(uint offset, matrix<float16_t, 3, 2> value) {
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
s.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
s.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
||||||
buffer.Store<vector<float16_t, 2> >((offset + 8u), value[2u]);
|
s.Store<vector<float16_t, 2> >((offset + 8u), value[2u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, S value) {
|
void s_store_1(uint offset, S value) {
|
||||||
buffer.Store((offset + 0u), asuint(value.before));
|
s.Store((offset + 0u), asuint(value.before));
|
||||||
tint_symbol_3(buffer, (offset + 4u), value.m);
|
s_store_3((offset + 4u), value.m);
|
||||||
buffer.Store((offset + 64u), asuint(value.after));
|
s.Store((offset + 64u), asuint(value.after));
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol(RWByteAddressBuffer buffer, uint offset, S value[4]) {
|
void s_store(uint offset, S value[4]) {
|
||||||
S array[4] = value;
|
S array_1[4] = value;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
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;
|
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;
|
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))));
|
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_3 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_4 = ((offset + 64u)) / 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])};
|
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_10;
|
return tint_symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef S tint_symbol_5_ret[4];
|
typedef S u_load_ret[4];
|
||||||
tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
S arr[4] = (S[4])0;
|
S arr[4] = (S[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -62,13 +62,10 @@ tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
tint_symbol(s, 0u, tint_symbol_5(u, 0u));
|
s_store(0u, u_load(0u));
|
||||||
tint_symbol_1(s, 128u, tint_symbol_6(u, 256u));
|
s_store_1(128u, u_load_1(256u));
|
||||||
tint_symbol_3(s, 388u, tint_symbol_8(u, 260u));
|
s_store_3(388u, u_load_3(260u));
|
||||||
uint ubo_load_3 = u[0].z;
|
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);
|
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;
|
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;
|
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;
|
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;
|
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;
|
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))));
|
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_3 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_4 = ((offset + 64u)) / 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])};
|
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_8;
|
return tint_symbol_3;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef S tint_symbol_2_ret[4];
|
typedef S u_load_ret[4];
|
||||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[32], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
S arr[4] = (S[4])0;
|
S arr[4] = (S[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -47,14 +47,14 @@ void f_inner(uint local_invocation_index) {
|
||||||
{
|
{
|
||||||
for(uint idx = local_invocation_index; (idx < 4u); idx = (idx + 1u)) {
|
for(uint idx = local_invocation_index; (idx < 4u); idx = (idx + 1u)) {
|
||||||
const uint i = idx;
|
const uint i = idx;
|
||||||
const S tint_symbol_7 = (S)0;
|
const S tint_symbol_2 = (S)0;
|
||||||
w[i] = tint_symbol_7;
|
w[i] = tint_symbol_2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
GroupMemoryBarrierWithGroupSync();
|
GroupMemoryBarrierWithGroupSync();
|
||||||
w = tint_symbol_2(u, 0u);
|
w = u_load(0u);
|
||||||
w[1] = tint_symbol_3(u, 256u);
|
w[1] = u_load_1(256u);
|
||||||
w[3].m = tint_symbol_5(u, 260u);
|
w[3].m = u_load_3(260u);
|
||||||
uint ubo_load_3 = u[0].z;
|
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;
|
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);
|
f_inner(tint_symbol.local_invocation_index);
|
||||||
return;
|
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;
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
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]));
|
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) {
|
Inner a_load_3(uint offset) {
|
||||||
const Inner tint_symbol_11 = {tint_symbol_8(buffer, (offset + 0u))};
|
const Inner tint_symbol_4 = {a_load_4((offset + 0u))};
|
||||||
return tint_symbol_11;
|
return tint_symbol_4;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef Inner tint_symbol_6_ret[4];
|
typedef Inner a_load_2_ret[4];
|
||||||
tint_symbol_6_ret tint_symbol_6(uint4 buffer[64], uint offset) {
|
a_load_2_ret a_load_2(uint offset) {
|
||||||
Inner arr[4] = (Inner[4])0;
|
Inner arr[4] = (Inner[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
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;
|
return arr;
|
||||||
}
|
}
|
||||||
|
|
||||||
Outer tint_symbol_5(uint4 buffer[64], uint offset) {
|
Outer a_load_1(uint offset) {
|
||||||
const Outer tint_symbol_12 = {tint_symbol_6(buffer, (offset + 0u))};
|
const Outer tint_symbol_5 = {a_load_2((offset + 0u))};
|
||||||
return tint_symbol_12;
|
return tint_symbol_5;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef Outer tint_symbol_4_ret[4];
|
typedef Outer a_load_ret[4];
|
||||||
tint_symbol_4_ret tint_symbol_4(uint4 buffer[64], uint offset) {
|
a_load_ret a_load(uint offset) {
|
||||||
Outer arr_1[4] = (Outer[4])0;
|
Outer arr_1[4] = (Outer[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_2 = 0u; (i_2 < 4u); i_2 = (i_2 + 1u)) {
|
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;
|
return arr_1;
|
||||||
|
@ -73,11 +73,11 @@ void f() {
|
||||||
const int p_a_i_save = i();
|
const int p_a_i_save = i();
|
||||||
const int p_a_i_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 int p_a_i_a_i_m_i_save = i();
|
||||||
const Outer l_a[4] = tint_symbol_4(a, 0u);
|
const Outer l_a[4] = a_load(0u);
|
||||||
const Outer l_a_i = tint_symbol_5(a, (256u * uint(p_a_i_save)));
|
const Outer l_a_i = a_load_1((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[4] = a_load_2((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 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 = tint_symbol_8(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 = 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;
|
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];
|
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);
|
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)));
|
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;
|
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];
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
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]));
|
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) {
|
Inner a_load_3(uint offset) {
|
||||||
const Inner tint_symbol_7 = {tint_symbol_4(buffer, (offset + 0u))};
|
const Inner tint_symbol = {a_load_4((offset + 0u))};
|
||||||
return tint_symbol_7;
|
return tint_symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef Inner tint_symbol_2_ret[4];
|
typedef Inner a_load_2_ret[4];
|
||||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[64], uint offset) {
|
a_load_2_ret a_load_2(uint offset) {
|
||||||
Inner arr[4] = (Inner[4])0;
|
Inner arr[4] = (Inner[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
}
|
}
|
||||||
|
|
||||||
Outer tint_symbol_1(uint4 buffer[64], uint offset) {
|
Outer a_load_1(uint offset) {
|
||||||
const Outer tint_symbol_8 = {tint_symbol_2(buffer, (offset + 0u))};
|
const Outer tint_symbol_1 = {a_load_2((offset + 0u))};
|
||||||
return tint_symbol_8;
|
return tint_symbol_1;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef Outer tint_symbol_ret[4];
|
typedef Outer a_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
a_load_ret a_load(uint offset) {
|
||||||
Outer arr_1[4] = (Outer[4])0;
|
Outer arr_1[4] = (Outer[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
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;
|
return arr_1;
|
||||||
|
@ -64,11 +64,11 @@ tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
const Outer l_a[4] = tint_symbol(a, 0u);
|
const Outer l_a[4] = a_load(0u);
|
||||||
const Outer l_a_3 = tint_symbol_1(a, 768u);
|
const Outer l_a_3 = a_load_1(768u);
|
||||||
const Inner l_a_3_a[4] = tint_symbol_2(a, 768u);
|
const Inner l_a_3_a[4] = a_load_2(768u);
|
||||||
const Inner l_a_3_a_2 = tint_symbol_3(a, 896u);
|
const Inner l_a_3_a_2 = a_load_3(896u);
|
||||||
const matrix<float16_t, 3, 3> l_a_3_a_2_m = tint_symbol_4(a, 896u);
|
const matrix<float16_t, 3, 3> l_a_3_a_2_m = a_load_4(896u);
|
||||||
uint2 ubo_load_6 = a[56].zw;
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
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)));
|
const float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].z) & 0xFFFF)));
|
||||||
return;
|
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];
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
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)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
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;
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
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);
|
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;
|
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) {
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
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]));
|
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_3 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_4 = ((offset + 64u)) / 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])};
|
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_5;
|
return tint_symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef S tint_symbol_ret[4];
|
typedef S u_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
S arr[4] = (S[4])0;
|
S arr[4] = (S[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -64,9 +64,9 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
a(tint_symbol(u, 0u));
|
a(u_load(0u));
|
||||||
b(tint_symbol_1(u, 256u));
|
b(u_load_1(256u));
|
||||||
c(tint_symbol_3(u, 264u));
|
c(u_load_3(264u));
|
||||||
uint2 ubo_load_6 = u[1].xy;
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
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);
|
e(vector<float16_t, 3>(ubo_load_7_xz[0], ubo_load_7_y, ubo_load_7_xz[1]).zxy.x);
|
||||||
return;
|
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;
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
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]));
|
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_3 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_4 = ((offset + 64u)) / 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])};
|
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_5;
|
return tint_symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef S tint_symbol_ret[4];
|
typedef S u_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
S arr[4] = (S[4])0;
|
S arr[4] = (S[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -50,15 +50,12 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
p = tint_symbol(u, 0u);
|
p = u_load(0u);
|
||||||
p[1] = tint_symbol_1(u, 256u);
|
p[1] = u_load_1(256u);
|
||||||
p[3].m = tint_symbol_3(u, 264u);
|
p[3].m = u_load_3(264u);
|
||||||
uint2 ubo_load_6 = u[1].xy;
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
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;
|
p[1].m[0] = vector<float16_t, 3>(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]).zxy;
|
||||||
return;
|
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);
|
RWByteAddressBuffer s : register(u1, space0);
|
||||||
|
|
||||||
void tint_symbol_3(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 3, 3> value) {
|
void s_store_3(uint offset, matrix<float16_t, 3, 3> value) {
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
s.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
s.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
||||||
buffer.Store<vector<float16_t, 3> >((offset + 16u), value[2u]);
|
s.Store<vector<float16_t, 3> >((offset + 16u), value[2u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, S value) {
|
void s_store_1(uint offset, S value) {
|
||||||
buffer.Store((offset + 0u), asuint(value.before));
|
s.Store((offset + 0u), asuint(value.before));
|
||||||
tint_symbol_3(buffer, (offset + 8u), value.m);
|
s_store_3((offset + 8u), value.m);
|
||||||
buffer.Store((offset + 64u), asuint(value.after));
|
s.Store((offset + 64u), asuint(value.after));
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol(RWByteAddressBuffer buffer, uint offset, S value[4]) {
|
void s_store(uint offset, S value[4]) {
|
||||||
S array[4] = value;
|
S array_1[4] = value;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
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]));
|
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_3 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_4 = ((offset + 64u)) / 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])};
|
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_10;
|
return tint_symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef S tint_symbol_5_ret[4];
|
typedef S u_load_ret[4];
|
||||||
tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
S arr[4] = (S[4])0;
|
S arr[4] = (S[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -71,15 +71,12 @@ tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
tint_symbol(s, 0u, tint_symbol_5(u, 0u));
|
s_store(0u, u_load(0u));
|
||||||
tint_symbol_1(s, 128u, tint_symbol_6(u, 256u));
|
s_store_1(128u, u_load_1(256u));
|
||||||
tint_symbol_3(s, 392u, tint_symbol_8(u, 264u));
|
s_store_3(392u, u_load_3(264u));
|
||||||
uint2 ubo_load_6 = u[1].xy;
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
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);
|
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;
|
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;
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
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]));
|
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_3 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_4 = ((offset + 64u)) / 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])};
|
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_8;
|
return tint_symbol_3;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef S tint_symbol_2_ret[4];
|
typedef S u_load_ret[4];
|
||||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[32], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
S arr[4] = (S[4])0;
|
S arr[4] = (S[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -56,14 +56,14 @@ void f_inner(uint local_invocation_index) {
|
||||||
{
|
{
|
||||||
for(uint idx = local_invocation_index; (idx < 4u); idx = (idx + 1u)) {
|
for(uint idx = local_invocation_index; (idx < 4u); idx = (idx + 1u)) {
|
||||||
const uint i = idx;
|
const uint i = idx;
|
||||||
const S tint_symbol_7 = (S)0;
|
const S tint_symbol_2 = (S)0;
|
||||||
w[i] = tint_symbol_7;
|
w[i] = tint_symbol_2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
GroupMemoryBarrierWithGroupSync();
|
GroupMemoryBarrierWithGroupSync();
|
||||||
w = tint_symbol_2(u, 0u);
|
w = u_load(0u);
|
||||||
w[1] = tint_symbol_3(u, 256u);
|
w[1] = u_load_1(256u);
|
||||||
w[3].m = tint_symbol_5(u, 264u);
|
w[3].m = u_load_3(264u);
|
||||||
uint2 ubo_load_6 = u[1].xy;
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
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);
|
f_inner(tint_symbol.local_invocation_index);
|
||||||
return;
|
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;
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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]));
|
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) {
|
Inner a_load_3(uint offset) {
|
||||||
const Inner tint_symbol_11 = {tint_symbol_8(buffer, (offset + 0u))};
|
const Inner tint_symbol_4 = {a_load_4((offset + 0u))};
|
||||||
return tint_symbol_11;
|
return tint_symbol_4;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef Inner tint_symbol_6_ret[4];
|
typedef Inner a_load_2_ret[4];
|
||||||
tint_symbol_6_ret tint_symbol_6(uint4 buffer[64], uint offset) {
|
a_load_2_ret a_load_2(uint offset) {
|
||||||
Inner arr[4] = (Inner[4])0;
|
Inner arr[4] = (Inner[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
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;
|
return arr;
|
||||||
}
|
}
|
||||||
|
|
||||||
Outer tint_symbol_5(uint4 buffer[64], uint offset) {
|
Outer a_load_1(uint offset) {
|
||||||
const Outer tint_symbol_12 = {tint_symbol_6(buffer, (offset + 0u))};
|
const Outer tint_symbol_5 = {a_load_2((offset + 0u))};
|
||||||
return tint_symbol_12;
|
return tint_symbol_5;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef Outer tint_symbol_4_ret[4];
|
typedef Outer a_load_ret[4];
|
||||||
tint_symbol_4_ret tint_symbol_4(uint4 buffer[64], uint offset) {
|
a_load_ret a_load(uint offset) {
|
||||||
Outer arr_1[4] = (Outer[4])0;
|
Outer arr_1[4] = (Outer[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_2 = 0u; (i_2 < 4u); i_2 = (i_2 + 1u)) {
|
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;
|
return arr_1;
|
||||||
|
@ -73,11 +73,11 @@ void f() {
|
||||||
const int p_a_i_save = i();
|
const int p_a_i_save = i();
|
||||||
const int p_a_i_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 int p_a_i_a_i_m_i_save = i();
|
||||||
const Outer l_a[4] = tint_symbol_4(a, 0u);
|
const Outer l_a[4] = a_load(0u);
|
||||||
const Outer l_a_i = tint_symbol_5(a, (256u * uint(p_a_i_save)));
|
const Outer l_a_i = a_load_1((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[4] = a_load_2((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 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 = tint_symbol_8(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 = 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;
|
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];
|
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);
|
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)));
|
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;
|
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];
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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]));
|
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) {
|
Inner a_load_3(uint offset) {
|
||||||
const Inner tint_symbol_7 = {tint_symbol_4(buffer, (offset + 0u))};
|
const Inner tint_symbol = {a_load_4((offset + 0u))};
|
||||||
return tint_symbol_7;
|
return tint_symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef Inner tint_symbol_2_ret[4];
|
typedef Inner a_load_2_ret[4];
|
||||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[64], uint offset) {
|
a_load_2_ret a_load_2(uint offset) {
|
||||||
Inner arr[4] = (Inner[4])0;
|
Inner arr[4] = (Inner[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
}
|
}
|
||||||
|
|
||||||
Outer tint_symbol_1(uint4 buffer[64], uint offset) {
|
Outer a_load_1(uint offset) {
|
||||||
const Outer tint_symbol_8 = {tint_symbol_2(buffer, (offset + 0u))};
|
const Outer tint_symbol_1 = {a_load_2((offset + 0u))};
|
||||||
return tint_symbol_8;
|
return tint_symbol_1;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef Outer tint_symbol_ret[4];
|
typedef Outer a_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
a_load_ret a_load(uint offset) {
|
||||||
Outer arr_1[4] = (Outer[4])0;
|
Outer arr_1[4] = (Outer[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
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;
|
return arr_1;
|
||||||
|
@ -64,11 +64,11 @@ tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
const Outer l_a[4] = tint_symbol(a, 0u);
|
const Outer l_a[4] = a_load(0u);
|
||||||
const Outer l_a_3 = tint_symbol_1(a, 768u);
|
const Outer l_a_3 = a_load_1(768u);
|
||||||
const Inner l_a_3_a[4] = tint_symbol_2(a, 768u);
|
const Inner l_a_3_a[4] = a_load_2(768u);
|
||||||
const Inner l_a_3_a_2 = tint_symbol_3(a, 896u);
|
const Inner l_a_3_a_2 = a_load_3(896u);
|
||||||
const matrix<float16_t, 3, 4> l_a_3_a_2_m = tint_symbol_4(a, 896u);
|
const matrix<float16_t, 3, 4> l_a_3_a_2_m = a_load_4(896u);
|
||||||
uint2 ubo_load_6 = a[56].zw;
|
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_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));
|
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)));
|
const float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].z) & 0xFFFF)));
|
||||||
return;
|
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];
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
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;
|
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_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));
|
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);
|
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;
|
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) {
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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]));
|
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_3 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_4 = ((offset + 64u)) / 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])};
|
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_5;
|
return tint_symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef S tint_symbol_ret[4];
|
typedef S u_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
S arr[4] = (S[4])0;
|
S arr[4] = (S[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -64,9 +64,9 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
a(tint_symbol(u, 0u));
|
a(u_load(0u));
|
||||||
b(tint_symbol_1(u, 256u));
|
b(u_load_1(256u));
|
||||||
c(tint_symbol_3(u, 264u));
|
c(u_load_3(264u));
|
||||||
uint2 ubo_load_6 = u[1].xy;
|
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_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));
|
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);
|
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;
|
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;
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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]));
|
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_3 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_4 = ((offset + 64u)) / 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])};
|
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_5;
|
return tint_symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef S tint_symbol_ret[4];
|
typedef S u_load_ret[4];
|
||||||
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
S arr[4] = (S[4])0;
|
S arr[4] = (S[4])0;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -50,15 +50,12 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
p = tint_symbol(u, 0u);
|
p = u_load(0u);
|
||||||
p[1] = tint_symbol_1(u, 256u);
|
p[1] = u_load_1(256u);
|
||||||
p[3].m = tint_symbol_3(u, 264u);
|
p[3].m = u_load_3(264u);
|
||||||
uint2 ubo_load_6 = u[1].xy;
|
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_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));
|
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;
|
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;
|
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);
|
RWByteAddressBuffer s : register(u1, space0);
|
||||||
|
|
||||||
void tint_symbol_3(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 3, 4> value) {
|
void s_store_3(uint offset, matrix<float16_t, 3, 4> value) {
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
s.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
s.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||||
buffer.Store<vector<float16_t, 4> >((offset + 16u), value[2u]);
|
s.Store<vector<float16_t, 4> >((offset + 16u), value[2u]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, S value) {
|
void s_store_1(uint offset, S value) {
|
||||||
buffer.Store((offset + 0u), asuint(value.before));
|
s.Store((offset + 0u), asuint(value.before));
|
||||||
tint_symbol_3(buffer, (offset + 8u), value.m);
|
s_store_3((offset + 8u), value.m);
|
||||||
buffer.Store((offset + 64u), asuint(value.after));
|
s.Store((offset + 64u), asuint(value.after));
|
||||||
}
|
}
|
||||||
|
|
||||||
void tint_symbol(RWByteAddressBuffer buffer, uint offset, S value[4]) {
|
void s_store(uint offset, S value[4]) {
|
||||||
S array[4] = value;
|
S array_1[4] = value;
|
||||||
{
|
{
|
||||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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]));
|
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_3 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_4 = ((offset + 64u)) / 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])};
|
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_10;
|
return tint_symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef S tint_symbol_5_ret[4];
|
typedef S u_load_ret[4];
|
||||||
tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
S arr[4] = (S[4])0;
|
S arr[4] = (S[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -71,15 +71,12 @@ tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
[numthreads(1, 1, 1)]
|
||||||
void f() {
|
void f() {
|
||||||
tint_symbol(s, 0u, tint_symbol_5(u, 0u));
|
s_store(0u, u_load(0u));
|
||||||
tint_symbol_1(s, 128u, tint_symbol_6(u, 256u));
|
s_store_1(128u, u_load_1(256u));
|
||||||
tint_symbol_3(s, 392u, tint_symbol_8(u, 264u));
|
s_store_3(392u, u_load_3(264u));
|
||||||
uint2 ubo_load_6 = u[1].xy;
|
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_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));
|
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);
|
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;
|
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;
|
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;
|
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);
|
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_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
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);
|
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_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));
|
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;
|
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);
|
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_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));
|
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]));
|
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_3 = ((offset + 0u)) / 4;
|
||||||
const uint scalar_offset_4 = ((offset + 64u)) / 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])};
|
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_8;
|
return tint_symbol_3;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef S tint_symbol_2_ret[4];
|
typedef S u_load_ret[4];
|
||||||
tint_symbol_2_ret tint_symbol_2(uint4 buffer[32], uint offset) {
|
u_load_ret u_load(uint offset) {
|
||||||
S arr[4] = (S[4])0;
|
S arr[4] = (S[4])0;
|
||||||
{
|
{
|
||||||
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
|
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;
|
return arr;
|
||||||
|
@ -56,14 +56,14 @@ void f_inner(uint local_invocation_index) {
|
||||||
{
|
{
|
||||||
for(uint idx = local_invocation_index; (idx < 4u); idx = (idx + 1u)) {
|
for(uint idx = local_invocation_index; (idx < 4u); idx = (idx + 1u)) {
|
||||||
const uint i = idx;
|
const uint i = idx;
|
||||||
const S tint_symbol_7 = (S)0;
|
const S tint_symbol_2 = (S)0;
|
||||||
w[i] = tint_symbol_7;
|
w[i] = tint_symbol_2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
GroupMemoryBarrierWithGroupSync();
|
GroupMemoryBarrierWithGroupSync();
|
||||||
w = tint_symbol_2(u, 0u);
|
w = u_load(0u);
|
||||||
w[1] = tint_symbol_3(u, 256u);
|
w[1] = u_load_1(256u);
|
||||||
w[3].m = tint_symbol_5(u, 264u);
|
w[3].m = u_load_3(264u);
|
||||||
uint2 ubo_load_6 = u[1].xy;
|
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_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));
|
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);
|
f_inner(tint_symbol.local_invocation_index);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
FXC validation failure:
|
|
||||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001FEBFD6AE90(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
Loading…
Reference in New Issue