SPIRV-Cross/reference/shaders-msl-no-opt/packing/member-padding.comp
2019-09-24 18:13:04 -04:00

22 lines
311 B
Plaintext

#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct SSBO
{
char _m0_pad[16];
float a;
char _m1_pad[20];
float b;
};
constant uint3 gl_WorkGroupSize [[maybe_unused]] = uint3(1u);
kernel void main0(device SSBO& _9 [[buffer(0)]])
{
_9.a = 10.0;
_9.b = 20.0;
}