SPIRV-Cross/reference/shaders-msl-no-opt/asm/packing/load-packed-no-forwarding-3.asm.comp
Hans-Kristian Arntzen 1ece67a050 Look at pointee type when unpacking expressions.
We might be unpacking in OpLoad, so don't want any pointer types from
access chains creeping in.
2019-07-23 17:07:15 +02:00

21 lines
319 B
Plaintext

#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct SSBOScalar
{
packed_float3 a;
packed_float3 b;
packed_float3 c;
};
kernel void main0(device SSBOScalar& _4 [[buffer(0)]])
{
float3 _17 = float3(_4.b);
float3 _19 = float3(_4.c);
_4.c = _17;
_4.a = _17 * _19;
}