SPIRV-Cross/reference/shaders-msl-no-opt/asm/packing/load-packed-no-forwarding-2.asm.comp
Hans-Kristian Arntzen ebe109d91d Deal correctly with non-forwarded packed loads.
Need to unpack the expression if we're not forwarding.
2019-07-23 16:25:19 +02:00

20 lines
278 B
Plaintext

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