dawn-cmake/test/bug/tint/782.wgsl.expected.hlsl
Ben Clayton 9ef52ffd8c writer/hlsl: Use the WrapArraysInStructs transform
Fixes issues with using arrays as function return types.

Fixed: tint:848
Change-Id: Iee8af0f2cea9d19e448176446c6599be2bd32316
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/54321
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: James Price <jrprice@google.com>
2021-06-16 09:19:36 +00:00

15 lines
235 B
HLSL

[numthreads(1, 1, 1)]
void unused_entry_point() {
return;
}
struct tint_array_wrapper {
int arr[2];
};
void foo() {
tint_array_wrapper tint_symbol = {{0, 0}};
tint_array_wrapper implict = {{0, 0}};
implict = tint_symbol;
}