mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 23:41:01 +01:00
* test(hlsl-out): add failing case for array as ctor arg See issue #2184. * fix(hlsl): emit constructor functions for arrays
19 lines
249 B
Plaintext
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;
|
|
}
|