mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-13 19:01:24 +00:00
For structures and arrays. This behaves identically to the per-element zero-initialization, but can be significantly less verbose. Change-Id: I380ef86f16c2b3f37a9de2820e707f368955b761 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/56764 Auto-Submit: Ben Clayton <bclayton@google.com> Reviewed-by: David Neto <dneto@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
19 lines
210 B
HLSL
19 lines
210 B
HLSL
[numthreads(1, 1, 1)]
|
|
void unused_entry_point() {
|
|
return;
|
|
}
|
|
|
|
struct S {
|
|
int i;
|
|
uint u;
|
|
float f;
|
|
bool b;
|
|
};
|
|
struct tint_array_wrapper {
|
|
S arr[4];
|
|
};
|
|
|
|
void f() {
|
|
tint_array_wrapper v = {(S[4])0};
|
|
}
|