Files
wgpu/tests/out/msl/array-in-ctor.msl
T
Erich Gubler 0b87d1918a fix(hlsl): emit constructor functions for arrays (#2281)
* test(hlsl-out): add failing case for array as ctor arg

See issue #2184.

* fix(hlsl): emit constructor functions for arrays
2023-03-20 17:21:52 +01:00

19 lines
249 B
Plaintext

// language: metal2.0
#include <metal_stdlib>
#include <simd/simd.h>
using metal::uint;
struct type_1 {
float inner[2];
};
struct Ah {
type_1 inner;
};
kernel void cs_main(
device Ah const& ah [[user(fake0)]]
) {
Ah unnamed = ah;
}