2017-11-06 02:34:42 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
#include <simd/simd.h>
|
|
|
|
|
|
|
|
using namespace metal;
|
|
|
|
|
|
|
|
struct SSBO
|
|
|
|
{
|
|
|
|
int a;
|
|
|
|
};
|
|
|
|
|
2019-09-18 19:56:51 +00:00
|
|
|
constant uint3 gl_WorkGroupSize [[maybe_unused]] = uint3(1u);
|
|
|
|
|
2017-11-06 02:34:42 +00:00
|
|
|
kernel void main0(device SSBO& _9 [[buffer(0)]])
|
|
|
|
{
|
|
|
|
_9.a += 10;
|
|
|
|
_9.a -= 10;
|
|
|
|
_9.a *= 10;
|
|
|
|
_9.a /= 10;
|
|
|
|
_9.a = _9.a << 2;
|
|
|
|
_9.a = _9.a >> 3;
|
|
|
|
_9.a &= 40;
|
|
|
|
_9.a ^= 10;
|
|
|
|
_9.a %= 40;
|
|
|
|
_9.a |= 1;
|
|
|
|
bool c = false;
|
|
|
|
bool d = true;
|
|
|
|
c = c && d;
|
|
|
|
d = d || c;
|
|
|
|
_9.a = int(c && d);
|
|
|
|
}
|
|
|
|
|