mirror of
https://github.com/libretro/RetroArch
synced 2025-02-19 03:40:59 +00:00
30 lines
421 B
Plaintext
30 lines
421 B
Plaintext
#include <metal_stdlib>
|
|
#include <simd/simd.h>
|
|
|
|
using namespace metal;
|
|
|
|
struct SSBO
|
|
{
|
|
int a;
|
|
};
|
|
|
|
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);
|
|
}
|
|
|