2019-06-11 08:45:22 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
#include <simd/simd.h>
|
|
|
|
|
|
|
|
using namespace metal;
|
|
|
|
|
2019-06-19 08:11:10 +00:00
|
|
|
struct SSBO
|
2019-06-11 08:45:22 +00:00
|
|
|
{
|
2019-06-19 08:11:10 +00:00
|
|
|
int s32;
|
|
|
|
uint u32;
|
2019-06-11 08:45:22 +00:00
|
|
|
};
|
|
|
|
|
2019-09-24 22:13:04 +00:00
|
|
|
constant uint3 gl_WorkGroupSize [[maybe_unused]] = uint3(1u);
|
|
|
|
|
|
|
|
constant long _164 = {};
|
2019-06-11 08:45:22 +00:00
|
|
|
|
2019-06-19 08:11:10 +00:00
|
|
|
kernel void main0(device SSBO& _96 [[buffer(0)]])
|
2019-06-11 08:45:22 +00:00
|
|
|
{
|
2019-09-24 22:13:04 +00:00
|
|
|
long4 _139;
|
|
|
|
ulong4 _143;
|
|
|
|
_139 = abs((_139 + long4(30l, 40l, 50l, 60l)) + long4(_143 + ulong4(999999999999999999ul, 8888888888888888ul, 77777777777777777ul, 6666666666666666ul)));
|
|
|
|
_143 += ulong4(long4(999999999999999999l, 8888888888888888l, 77777777777777777l, 6666666666666666l));
|
|
|
|
ulong _109 = ulong(_164);
|
|
|
|
_96.s32 = int(uint(((ulong(_139.x) + _143.y) + _109) + _109));
|
|
|
|
_96.u32 = uint(((ulong(_139.y) + _143.z) + ulong(_164 + 1l)) + _109);
|
2019-06-11 08:45:22 +00:00
|
|
|
}
|
|
|
|
|