2017-11-22 11:08:06 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
#include <simd/simd.h>
|
|
|
|
|
|
|
|
using namespace metal;
|
|
|
|
|
|
|
|
struct SSBO
|
|
|
|
{
|
|
|
|
int4 value;
|
|
|
|
};
|
|
|
|
|
2018-04-04 08:00:37 +00:00
|
|
|
kernel void main0(device SSBO& _10 [[buffer(1)]], texture2d<int> uImage [[texture(3)]])
|
2017-11-22 11:08:06 +00:00
|
|
|
{
|
|
|
|
_10.value = uImage.read(uint2(int2(10)));
|
|
|
|
}
|
|
|
|
|