SPIRV-Cross/reference/opt/shaders-msl/asm/comp/copy-object-ssbo-to-ssbo.asm.comp
Chip Davis 061cdd2052 MSL: Don't dereference forwarded copies of OpVariable pointers.
Fixes two more CTS tests under
`dEQP-VK.spirv_assembly.instruction.compute.empty_struct.copying`.
2022-11-20 02:08:37 -08:00

24 lines
292 B
Plaintext

#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct _19
{
};
struct _5
{
int _m0;
_19 _m1;
char _m2_pad[4];
_19 _m2;
char _m3_pad[4];
int _m3;
};
kernel void main0(device _5& _3 [[buffer(0)]], device _5& _4 [[buffer(1)]])
{
_4 = _3;
}