SPIRV-Cross/reference/shaders-msl-no-opt/packing/array-of-vec3.comp

18 lines
266 B
Plaintext
Raw Normal View History

#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct SSBO
{
packed_float3 v[16];
};
constant uint3 gl_WorkGroupSize [[maybe_unused]] = uint3(1u);
kernel void main0(device SSBO& _13 [[buffer(0)]])
{
_13.v[1] = float3(_13.v[0]);
}