SPIRV-Cross/reference/shaders-msl-no-opt/comp/illegal-struct-name.asm.comp
Chip Davis 68f0257f26 Use --preserve-numeric-ids when assembling test shaders.
This makes it easier to debug codegen for these shaders.
2023-06-23 14:54:16 -07:00

30 lines
326 B
Plaintext

#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct Foo
{
float _abs;
};
struct Foo_1
{
float _abs;
};
struct SSBO
{
Foo_1 foo;
Foo_1 foo2;
};
kernel void main0(device SSBO& _9 [[buffer(0)]])
{
Foo f;
f._abs = _9.foo._abs;
int _abs = 10;
_9.foo2._abs = f._abs;
}