mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
29 lines
628 B
Plaintext
29 lines
628 B
Plaintext
#include <metal_stdlib>
|
|
#include <simd/simd.h>
|
|
|
|
struct _mslBufferSizes {
|
|
metal::uint size0;
|
|
};
|
|
|
|
typedef int type2[1];
|
|
struct Bar {
|
|
metal::float4x4 matrix;
|
|
type2 data;
|
|
};
|
|
struct type5 {
|
|
int inner[5];
|
|
};
|
|
|
|
struct fooInput {
|
|
};
|
|
struct fooOutput {
|
|
metal::float4 member [[position]];
|
|
};
|
|
vertex fooOutput foo(
|
|
metal::uint vi [[vertex_id]]
|
|
, device Bar& bar [[buffer(0)]]
|
|
, constant _mslBufferSizes& _buffer_sizes [[buffer(24)]]
|
|
) {
|
|
return fooOutput { static_cast<float4>(metal::int4(type5 {bar.data[(1 + (_buffer_sizes.size0 - 64 - 4) / 4) - 1u], static_cast<int>(bar.matrix[3u].x), 3, 4, 5}.inner[vi])) };
|
|
}
|