32 lines
506 B
Plaintext
32 lines
506 B
Plaintext
#include <metal_stdlib>
|
|
#include <simd/simd.h>
|
|
|
|
using namespace metal;
|
|
|
|
struct SSBO2
|
|
{
|
|
float4 data4;
|
|
float4 data5;
|
|
};
|
|
|
|
struct SSBO0
|
|
{
|
|
float4 data0;
|
|
float4 data1;
|
|
};
|
|
|
|
struct SSBO1
|
|
{
|
|
float4 data2;
|
|
float4 data3;
|
|
};
|
|
|
|
constant uint3 gl_WorkGroupSize [[maybe_unused]] = uint3(1u);
|
|
|
|
kernel void main0(device SSBO2& _10 [[buffer(0)]], const device SSBO0& _15 [[buffer(1)]], device SSBO1& _21 [[buffer(2)]])
|
|
{
|
|
_10.data4 = _15.data0 + _21.data2;
|
|
_10.data5 = _15.data1 + _21.data3;
|
|
}
|
|
|