mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-13 19:01:24 +00:00
This allows them to be used in various places that WGSL allows, such as function return types and parameters, and as the type of the RHS of an assignment. Fixed: tint:814 Fixed: tint:820 Change-Id: Idb6a901b9a34e96bb9733cc158191e7b3bafaa0e Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/52844 Auto-Submit: James Price <jrprice@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: James Price <jrprice@google.com> Reviewed-by: Ben Clayton <bclayton@google.com>
22 lines
380 B
HLSL
22 lines
380 B
HLSL
struct S {
|
|
int arr[4];
|
|
};
|
|
|
|
void foo() {
|
|
const int src[4] = {0, 0, 0, 0};
|
|
int tint_symbol[4] = {0, 0, 0, 0};
|
|
S dst_struct = {{0, 0, 0, 0}};
|
|
int dst_array[2][4] = {{0, 0, 0, 0}, {0, 0, 0, 0}};
|
|
dst_struct.arr = src;
|
|
dst_array[1] = src;
|
|
tint_symbol = src;
|
|
dst_struct.arr = src;
|
|
dst_array[0] = src;
|
|
}
|
|
|
|
[numthreads(1, 1, 1)]
|
|
void unused_entry_point() {
|
|
return;
|
|
}
|
|
|