mirror of
https://github.com/libretro/RetroArch
synced 2025-02-02 23:54:06 +00:00
16 lines
245 B
Plaintext
16 lines
245 B
Plaintext
|
#include <metal_stdlib>
|
||
|
#include <simd/simd.h>
|
||
|
|
||
|
using namespace metal;
|
||
|
|
||
|
struct SSBO
|
||
|
{
|
||
|
int4 value;
|
||
|
};
|
||
|
|
||
|
kernel void main0(device SSBO& _10 [[buffer(0)]], texture2d<int> uImage [[texture(0)]])
|
||
|
{
|
||
|
_10.value = uImage.read(uint2(int2(10)));
|
||
|
}
|
||
|
|