18 lines
266 B
Plaintext
18 lines
266 B
Plaintext
|
#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]);
|
||
|
}
|
||
|
|