16 lines
174 B
Plaintext
16 lines
174 B
Plaintext
|
#include <metal_stdlib>
|
||
|
#include <simd/simd.h>
|
||
|
|
||
|
using namespace metal;
|
||
|
|
||
|
struct SSBO
|
||
|
{
|
||
|
float a;
|
||
|
};
|
||
|
|
||
|
kernel void main0(device SSBO& _4 [[buffer(0)]])
|
||
|
{
|
||
|
_4.a += 1.0;
|
||
|
}
|
||
|
|