mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 13:38:00 +00:00
writer/hlsl: Emit zero values for private variables
Also remove the unreachanble constructor logic in EmitHandleVariable. Variables of the handle storage class cannot have initializers. Fixed: tint:173 Change-Id: I7c997a8b6a70308ff9b5c42fa1198810ee365bac Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/55258 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: James Price <jrprice@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
committed by
Tint LUCI CQ
parent
3b02d54ab0
commit
41f21fe05b
@@ -27,7 +27,7 @@ tint_array_wrapper tint_symbol_4(RWByteAddressBuffer buffer, uint offset) {
|
||||
return tint_symbol_6;
|
||||
}
|
||||
|
||||
static tint_array_wrapper src_private;
|
||||
static tint_array_wrapper src_private = {{{0}, {0}, {0}, {0}}};
|
||||
groupshared tint_array_wrapper src_workgroup;
|
||||
cbuffer cbuffer_src_uniform : register(b0, space0) {
|
||||
uint4 src_uniform[4];
|
||||
|
||||
@@ -27,13 +27,13 @@ tint_array_wrapper tint_symbol_4(RWByteAddressBuffer buffer, uint offset) {
|
||||
return tint_symbol_6;
|
||||
}
|
||||
|
||||
static tint_array_wrapper src_private;
|
||||
static tint_array_wrapper src_private = {{{0}, {0}, {0}, {0}}};
|
||||
groupshared tint_array_wrapper src_workgroup;
|
||||
cbuffer cbuffer_src_uniform : register(b0, space0) {
|
||||
uint4 src_uniform[4];
|
||||
};
|
||||
RWByteAddressBuffer src_storage : register(u1, space0);
|
||||
static tint_array_wrapper tint_symbol;
|
||||
static tint_array_wrapper tint_symbol = {{{0}, {0}, {0}, {0}}};
|
||||
|
||||
struct tint_array_wrapper_3 {
|
||||
int arr[2];
|
||||
@@ -45,7 +45,7 @@ struct tint_array_wrapper_1 {
|
||||
tint_array_wrapper_2 arr[4];
|
||||
};
|
||||
|
||||
static tint_array_wrapper_1 dst_nested;
|
||||
static tint_array_wrapper_1 dst_nested = {{{{{{0, 0}}, {{0, 0}}, {{0, 0}}}}, {{{{0, 0}}, {{0, 0}}, {{0, 0}}}}, {{{{0, 0}}, {{0, 0}}, {{0, 0}}}}, {{{{0, 0}}, {{0, 0}}, {{0, 0}}}}}};
|
||||
|
||||
tint_array_wrapper ret_arr() {
|
||||
const tint_array_wrapper tint_symbol_7 = {{{0}, {0}, {0}, {0}}};
|
||||
|
||||
@@ -62,7 +62,7 @@ void tint_symbol_10(RWByteAddressBuffer buffer, uint offset, tint_array_wrapper_
|
||||
tint_symbol_9(buffer, (offset + 72u), value.arr[3u]);
|
||||
}
|
||||
|
||||
static tint_array_wrapper src_private;
|
||||
static tint_array_wrapper src_private = {{{0}, {0}, {0}, {0}}};
|
||||
groupshared tint_array_wrapper src_workgroup;
|
||||
cbuffer cbuffer_src_uniform : register(b0, space0) {
|
||||
uint4 src_uniform[4];
|
||||
|
||||
@@ -27,7 +27,7 @@ tint_array_wrapper tint_symbol_4(RWByteAddressBuffer buffer, uint offset) {
|
||||
return tint_symbol_6;
|
||||
}
|
||||
|
||||
static tint_array_wrapper src_private;
|
||||
static tint_array_wrapper src_private = {{{0}, {0}, {0}, {0}}};
|
||||
groupshared tint_array_wrapper src_workgroup;
|
||||
cbuffer cbuffer_src_uniform : register(b0, space0) {
|
||||
uint4 src_uniform[4];
|
||||
|
||||
Reference in New Issue
Block a user