dawn-cmake/test/bug/tint/782.wgsl.expected.msl
Ben Clayton 0597a2b51b Add transform/WrapArraysInStructs
And replace the MSL writer's logic to do this with the transform.

We need to do the same thing in HLSL, and in the future GLSL too.

Partially reverts fbfde720

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

14 lines
209 B
Plaintext

#include <metal_stdlib>
using namespace metal;
struct tint_array_wrapper {
int arr[2];
};
void foo() {
tint_array_wrapper tint_symbol = {};
tint_array_wrapper implict = {};
implict = tint_symbol;
}