[tint] do not emit space for binding group 0

D3D11 only supports HLSL SM5.0 which doesn't support `space`
(binding group in WGSL). So for D3D11, only one binding group will be
used, and tint will not emit `space` for HLSL, so shaders can be used
with D3D11.

Bug: dawn:1705
Change-Id: Ie0e9868137f10762c5243e188d76f5e41879c2bc
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/125080
Commit-Queue: Peng Huang <penghuang@chromium.org>
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Ben Clayton <bclayton@google.com>
This commit is contained in:
Peng Huang 2023-03-31 17:55:19 +00:00 committed by Dawn LUCI CQ
parent 70d8711973
commit c00ff7f3c7
1555 changed files with 2097 additions and 2083 deletions

View File

@ -148,8 +148,14 @@ struct RegisterAndSpace {
};
utils::StringStream& operator<<(utils::StringStream& s, const RegisterAndSpace& rs) {
s << " : register(" << rs.reg << rs.binding_point.binding << ", space" << rs.binding_point.group
<< ")";
s << " : register(" << rs.reg << rs.binding_point.binding;
// Omit the space if it's 0, as it's the default.
// SM 5.0 doesn't support spaces, so we don't emit them if group is 0 for better compatibility.
if (rs.binding_point.group == 0) {
s << ")";
} else {
s << ", space" << rs.binding_point.group << ")";
}
return s;
}
@ -3123,7 +3129,15 @@ bool GeneratorImpl::EmitHandleVariable(const ast::Var* var, const sem::Variable*
if (register_space) {
auto bp = sem->As<sem::GlobalVariable>()->BindingPoint();
out << " : register(" << register_space << bp.binding << ", space" << bp.group << ")";
out << " : register(" << register_space << bp.binding;
// Omit the space if it's 0, as it's the default.
// SM 5.0 doesn't support spaces, so we don't emit them if group is 0 for better
// compatibility.
if (bp.group == 0) {
out << ")";
} else {
out << ", space" << bp.group << ")";
}
}
out << ";";

View File

@ -864,7 +864,7 @@ TEST_F(HlslGeneratorImplTest_Function, Emit_Multiple_EntryPoint_With_Same_Module
GeneratorImpl& gen = SanitizeAndBuild();
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_EQ(gen.result(), R"(RWByteAddressBuffer data : register(u0, space0);
EXPECT_EQ(gen.result(), R"(RWByteAddressBuffer data : register(u0);
[numthreads(1, 1, 1)]
void a() {

View File

@ -191,7 +191,7 @@ TEST_F(HlslGeneratorImplTest_Type, EmitType_StructDecl_OmittedIfStorageBuffer) {
GeneratorImpl& gen = Build();
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_EQ(gen.result(), "RWByteAddressBuffer g : register(u0, space0);\n");
EXPECT_EQ(gen.result(), "RWByteAddressBuffer g : register(u0);\n");
}
TEST_F(HlslGeneratorImplTest_Type, EmitType_Struct) {

View File

@ -9,10 +9,10 @@ struct S {
static int4 src_private[4] = (int4[4])0;
groupshared int4 src_workgroup[4];
cbuffer cbuffer_src_uniform : register(b0, space0) {
cbuffer cbuffer_src_uniform : register(b0) {
uint4 src_uniform[4];
};
RWByteAddressBuffer src_storage : register(u1, space0);
RWByteAddressBuffer src_storage : register(u1);
typedef int4 ret_arr_ret[4];
ret_arr_ret ret_arr() {

View File

@ -9,10 +9,10 @@ struct S {
static int4 src_private[4] = (int4[4])0;
groupshared int4 src_workgroup[4];
cbuffer cbuffer_src_uniform : register(b0, space0) {
cbuffer cbuffer_src_uniform : register(b0) {
uint4 src_uniform[4];
};
RWByteAddressBuffer src_storage : register(u1, space0);
RWByteAddressBuffer src_storage : register(u1);
typedef int4 ret_arr_ret[4];
ret_arr_ret ret_arr() {

View File

@ -9,10 +9,10 @@ struct S {
static int4 src_private[4] = (int4[4])0;
groupshared int4 src_workgroup[4];
cbuffer cbuffer_src_uniform : register(b0, space0) {
cbuffer cbuffer_src_uniform : register(b0) {
uint4 src_uniform[4];
};
RWByteAddressBuffer src_storage : register(u1, space0);
RWByteAddressBuffer src_storage : register(u1);
static int4 tint_symbol[4] = (int4[4])0;
static int dst_nested[4][3][2] = (int[4][3][2])0;

View File

@ -9,10 +9,10 @@ struct S {
static int4 src_private[4] = (int4[4])0;
groupshared int4 src_workgroup[4];
cbuffer cbuffer_src_uniform : register(b0, space0) {
cbuffer cbuffer_src_uniform : register(b0) {
uint4 src_uniform[4];
};
RWByteAddressBuffer src_storage : register(u1, space0);
RWByteAddressBuffer src_storage : register(u1);
static int4 tint_symbol[4] = (int4[4])0;
static int dst_nested[4][3][2] = (int[4][3][2])0;

View File

@ -9,12 +9,12 @@ struct S {
static int4 src_private[4] = (int4[4])0;
groupshared int4 src_workgroup[4];
cbuffer cbuffer_src_uniform : register(b0, space0) {
cbuffer cbuffer_src_uniform : register(b0) {
uint4 src_uniform[4];
};
RWByteAddressBuffer src_storage : register(u1, space0);
RWByteAddressBuffer tint_symbol : register(u2, space0);
RWByteAddressBuffer dst_nested : register(u3, space0);
RWByteAddressBuffer src_storage : register(u1);
RWByteAddressBuffer tint_symbol : register(u2);
RWByteAddressBuffer dst_nested : register(u3);
typedef int4 ret_arr_ret[4];
ret_arr_ret ret_arr() {

View File

@ -9,12 +9,12 @@ struct S {
static int4 src_private[4] = (int4[4])0;
groupshared int4 src_workgroup[4];
cbuffer cbuffer_src_uniform : register(b0, space0) {
cbuffer cbuffer_src_uniform : register(b0) {
uint4 src_uniform[4];
};
RWByteAddressBuffer src_storage : register(u1, space0);
RWByteAddressBuffer tint_symbol : register(u2, space0);
RWByteAddressBuffer dst_nested : register(u3, space0);
RWByteAddressBuffer src_storage : register(u1);
RWByteAddressBuffer tint_symbol : register(u2);
RWByteAddressBuffer dst_nested : register(u3);
typedef int4 ret_arr_ret[4];
ret_arr_ret ret_arr() {

View File

@ -9,10 +9,10 @@ struct S {
static int4 src_private[4] = (int4[4])0;
groupshared int4 src_workgroup[4];
cbuffer cbuffer_src_uniform : register(b0, space0) {
cbuffer cbuffer_src_uniform : register(b0) {
uint4 src_uniform[4];
};
RWByteAddressBuffer src_storage : register(u1, space0);
RWByteAddressBuffer src_storage : register(u1);
groupshared int4 tint_symbol[4];
groupshared int dst_nested[4][3][2];

View File

@ -9,10 +9,10 @@ struct S {
static int4 src_private[4] = (int4[4])0;
groupshared int4 src_workgroup[4];
cbuffer cbuffer_src_uniform : register(b0, space0) {
cbuffer cbuffer_src_uniform : register(b0) {
uint4 src_uniform[4];
};
RWByteAddressBuffer src_storage : register(u1, space0);
RWByteAddressBuffer src_storage : register(u1);
groupshared int4 tint_symbol[4];
groupshared int dst_nested[4][3][2];

View File

@ -5,7 +5,7 @@ struct strided_arr_1 {
strided_arr el[3][2];
};
RWByteAddressBuffer s : register(u0, space0);
RWByteAddressBuffer s : register(u0);
strided_arr s_load_4(uint offset) {
const strided_arr tint_symbol = {asfloat(s.Load((offset + 0u)))};

View File

@ -5,7 +5,7 @@ struct strided_arr_1 {
strided_arr el[3][2];
};
RWByteAddressBuffer s : register(u0, space0);
RWByteAddressBuffer s : register(u0);
strided_arr s_load_4(uint offset) {
const strided_arr tint_symbol = {asfloat(s.Load((offset + 0u)))};

View File

@ -1,4 +1,4 @@
ByteAddressBuffer sb : register(t0, space0);
ByteAddressBuffer sb : register(t0);
struct tint_symbol_1 {
uint idx : SV_GroupIndex;

View File

@ -1,4 +1,4 @@
ByteAddressBuffer sb : register(t0, space0);
ByteAddressBuffer sb : register(t0);
struct tint_symbol_1 {
uint idx : SV_GroupIndex;

View File

@ -1,4 +1,4 @@
ByteAddressBuffer sb : register(t0, space0);
ByteAddressBuffer sb : register(t0);
struct tint_symbol_1 {
uint idx : SV_GroupIndex;

View File

@ -1,6 +1,6 @@
SKIP: FAILED
ByteAddressBuffer sb : register(t0, space0);
ByteAddressBuffer sb : register(t0);
struct tint_symbol_1 {
uint idx : SV_GroupIndex;

View File

@ -1,4 +1,4 @@
RWByteAddressBuffer sb : register(u0, space0);
RWByteAddressBuffer sb : register(u0);
struct tint_symbol_1 {
uint idx : SV_GroupIndex;

View File

@ -1,4 +1,4 @@
RWByteAddressBuffer sb : register(u0, space0);
RWByteAddressBuffer sb : register(u0);
struct tint_symbol_1 {
uint idx : SV_GroupIndex;

View File

@ -1,4 +1,4 @@
RWByteAddressBuffer sb : register(u0, space0);
RWByteAddressBuffer sb : register(u0);
struct tint_symbol_1 {
uint idx : SV_GroupIndex;

View File

@ -1,6 +1,6 @@
SKIP: FAILED
RWByteAddressBuffer sb : register(u0, space0);
RWByteAddressBuffer sb : register(u0);
struct tint_symbol_1 {
uint idx : SV_GroupIndex;

View File

@ -3,7 +3,7 @@ struct Inner {
float scalar_f32;
};
ByteAddressBuffer sb : register(t0, space0);
ByteAddressBuffer sb : register(t0);
float2x2 sb_load_12(uint offset) {
return float2x2(asfloat(sb.Load2((offset + 0u))), asfloat(sb.Load2((offset + 8u))));

View File

@ -3,7 +3,7 @@ struct Inner {
float scalar_f32;
};
ByteAddressBuffer sb : register(t0, space0);
ByteAddressBuffer sb : register(t0);
float2x2 sb_load_12(uint offset) {
return float2x2(asfloat(sb.Load2((offset + 0u))), asfloat(sb.Load2((offset + 8u))));

View File

@ -4,7 +4,7 @@ struct Inner {
float16_t scalar_f16;
};
ByteAddressBuffer sb : register(t0, space0);
ByteAddressBuffer sb : register(t0);
float2x2 sb_load_16(uint offset) {
return float2x2(asfloat(sb.Load2((offset + 0u))), asfloat(sb.Load2((offset + 8u))));

View File

@ -6,7 +6,7 @@ struct Inner {
float16_t scalar_f16;
};
ByteAddressBuffer sb : register(t0, space0);
ByteAddressBuffer sb : register(t0);
float2x2 sb_load_16(uint offset) {
return float2x2(asfloat(sb.Load2((offset + 0u))), asfloat(sb.Load2((offset + 8u))));

View File

@ -3,7 +3,7 @@ struct Inner {
float scalar_f32;
};
RWByteAddressBuffer sb : register(u0, space0);
RWByteAddressBuffer sb : register(u0);
void sb_store_12(uint offset, float2x2 value) {
sb.Store2((offset + 0u), asuint(value[0u]));

View File

@ -3,7 +3,7 @@ struct Inner {
float scalar_f32;
};
RWByteAddressBuffer sb : register(u0, space0);
RWByteAddressBuffer sb : register(u0);
void sb_store_12(uint offset, float2x2 value) {
sb.Store2((offset + 0u), asuint(value[0u]));

View File

@ -4,7 +4,7 @@ struct Inner {
float16_t scalar_f16;
};
RWByteAddressBuffer sb : register(u0, space0);
RWByteAddressBuffer sb : register(u0);
void sb_store_16(uint offset, float2x2 value) {
sb.Store2((offset + 0u), asuint(value[0u]));

View File

@ -6,7 +6,7 @@ struct Inner {
float16_t scalar_f16;
};
RWByteAddressBuffer sb : register(u0, space0);
RWByteAddressBuffer sb : register(u0);
void sb_store_16(uint offset, float2x2 value) {
sb.Store2((offset + 0u), asuint(value[0u]));

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, float16_t value[4]) {
float16_t array_1[4] = value;

View File

@ -1,7 +1,7 @@
SKIP: FAILED
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, float16_t value[4]) {
float16_t array_1[4] = value;

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, float value[4]) {
float array_1[4] = value;

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, float value[4]) {
float array_1[4] = value;

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
[numthreads(1, 1, 1)]
void main() {

View File

@ -1,7 +1,7 @@
SKIP: FAILED
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
[numthreads(1, 1, 1)]
void main() {

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
[numthreads(1, 1, 1)]
void main() {

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
[numthreads(1, 1, 1)]
void main() {

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
[numthreads(1, 1, 1)]
void main() {

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
[numthreads(1, 1, 1)]
void main() {

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, matrix<float16_t, 2, 2> value) {
tint_symbol_1.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);

View File

@ -1,7 +1,7 @@
SKIP: FAILED
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, matrix<float16_t, 2, 2> value) {
tint_symbol_1.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, float2x2 value) {
tint_symbol_1.Store2((offset + 0u), asuint(value[0u]));

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, float2x2 value) {
tint_symbol_1.Store2((offset + 0u), asuint(value[0u]));

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, matrix<float16_t, 2, 3> value) {
tint_symbol_1.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);

View File

@ -1,7 +1,7 @@
SKIP: FAILED
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, matrix<float16_t, 2, 3> value) {
tint_symbol_1.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, float2x3 value) {
tint_symbol_1.Store3((offset + 0u), asuint(value[0u]));

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, float2x3 value) {
tint_symbol_1.Store3((offset + 0u), asuint(value[0u]));

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, matrix<float16_t, 2, 4> value) {
tint_symbol_1.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);

View File

@ -1,7 +1,7 @@
SKIP: FAILED
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, matrix<float16_t, 2, 4> value) {
tint_symbol_1.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, float2x4 value) {
tint_symbol_1.Store4((offset + 0u), asuint(value[0u]));

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, float2x4 value) {
tint_symbol_1.Store4((offset + 0u), asuint(value[0u]));

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, matrix<float16_t, 3, 2> value) {
tint_symbol_1.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);

View File

@ -1,7 +1,7 @@
SKIP: FAILED
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, matrix<float16_t, 3, 2> value) {
tint_symbol_1.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, float3x2 value) {
tint_symbol_1.Store2((offset + 0u), asuint(value[0u]));

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, float3x2 value) {
tint_symbol_1.Store2((offset + 0u), asuint(value[0u]));

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, matrix<float16_t, 3, 3> value) {
tint_symbol_1.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);

View File

@ -1,7 +1,7 @@
SKIP: FAILED
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, matrix<float16_t, 3, 3> value) {
tint_symbol_1.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, float3x3 value) {
tint_symbol_1.Store3((offset + 0u), asuint(value[0u]));

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, float3x3 value) {
tint_symbol_1.Store3((offset + 0u), asuint(value[0u]));

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, matrix<float16_t, 3, 4> value) {
tint_symbol_1.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);

View File

@ -1,7 +1,7 @@
SKIP: FAILED
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, matrix<float16_t, 3, 4> value) {
tint_symbol_1.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, float3x4 value) {
tint_symbol_1.Store4((offset + 0u), asuint(value[0u]));

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, float3x4 value) {
tint_symbol_1.Store4((offset + 0u), asuint(value[0u]));

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, matrix<float16_t, 4, 2> value) {
tint_symbol_1.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);

View File

@ -1,7 +1,7 @@
SKIP: FAILED
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, matrix<float16_t, 4, 2> value) {
tint_symbol_1.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, float4x2 value) {
tint_symbol_1.Store2((offset + 0u), asuint(value[0u]));

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, float4x2 value) {
tint_symbol_1.Store2((offset + 0u), asuint(value[0u]));

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, matrix<float16_t, 4, 3> value) {
tint_symbol_1.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);

View File

@ -1,7 +1,7 @@
SKIP: FAILED
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, matrix<float16_t, 4, 3> value) {
tint_symbol_1.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, float4x3 value) {
tint_symbol_1.Store3((offset + 0u), asuint(value[0u]));

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, float4x3 value) {
tint_symbol_1.Store3((offset + 0u), asuint(value[0u]));

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, matrix<float16_t, 4, 4> value) {
tint_symbol_1.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);

View File

@ -1,7 +1,7 @@
SKIP: FAILED
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, matrix<float16_t, 4, 4> value) {
tint_symbol_1.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, float4x4 value) {
tint_symbol_1.Store4((offset + 0u), asuint(value[0u]));

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
void tint_symbol_1_store(uint offset, float4x4 value) {
tint_symbol_1.Store4((offset + 0u), asuint(value[0u]));

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
[numthreads(1, 1, 1)]
void main() {

View File

@ -1,7 +1,7 @@
SKIP: FAILED
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
[numthreads(1, 1, 1)]
void main() {

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
[numthreads(1, 1, 1)]
void main() {

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
[numthreads(1, 1, 1)]
void main() {

View File

@ -7,8 +7,8 @@ struct S {
Inner inner;
};
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
matrix<float16_t, 2, 4> tint_symbol_load_4(uint offset) {
return matrix<float16_t, 2, 4>(tint_symbol.Load<vector<float16_t, 4> >((offset + 0u)), tint_symbol.Load<vector<float16_t, 4> >((offset + 8u)));

View File

@ -9,8 +9,8 @@ struct S {
Inner inner;
};
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
matrix<float16_t, 2, 4> tint_symbol_load_4(uint offset) {
return matrix<float16_t, 2, 4>(tint_symbol.Load<vector<float16_t, 4> >((offset + 0u)), tint_symbol.Load<vector<float16_t, 4> >((offset + 8u)));

View File

@ -7,8 +7,8 @@ struct S {
Inner inner;
};
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
float2x4 tint_symbol_load_4(uint offset) {
return float2x4(asfloat(tint_symbol.Load4((offset + 0u))), asfloat(tint_symbol.Load4((offset + 16u))));

View File

@ -7,8 +7,8 @@ struct S {
Inner inner;
};
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
float2x4 tint_symbol_load_4(uint offset) {
return float2x4(asfloat(tint_symbol.Load4((offset + 0u))), asfloat(tint_symbol.Load4((offset + 16u))));

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
[numthreads(1, 1, 1)]
void main() {

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
[numthreads(1, 1, 1)]
void main() {

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
[numthreads(1, 1, 1)]
void main() {

View File

@ -1,7 +1,7 @@
SKIP: FAILED
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
[numthreads(1, 1, 1)]
void main() {

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
[numthreads(1, 1, 1)]
void main() {

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
[numthreads(1, 1, 1)]
void main() {

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
[numthreads(1, 1, 1)]
void main() {

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
[numthreads(1, 1, 1)]
void main() {

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
[numthreads(1, 1, 1)]
void main() {

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
[numthreads(1, 1, 1)]
void main() {

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
[numthreads(1, 1, 1)]
void main() {

View File

@ -1,7 +1,7 @@
SKIP: FAILED
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
[numthreads(1, 1, 1)]
void main() {

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
[numthreads(1, 1, 1)]
void main() {

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
[numthreads(1, 1, 1)]
void main() {

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
[numthreads(1, 1, 1)]
void main() {

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
[numthreads(1, 1, 1)]
void main() {

View File

@ -1,5 +1,5 @@
ByteAddressBuffer tint_symbol : register(t0, space0);
RWByteAddressBuffer tint_symbol_1 : register(u1, space0);
ByteAddressBuffer tint_symbol : register(t0);
RWByteAddressBuffer tint_symbol_1 : register(u1);
[numthreads(1, 1, 1)]
void main() {

Some files were not shown because too many files have changed in this diff Show More