20 lines
248 B
Plaintext
20 lines
248 B
Plaintext
|
#include <metal_stdlib>
|
||
|
#include <simd/simd.h>
|
||
|
|
||
|
using namespace metal;
|
||
|
|
||
|
struct SSBO
|
||
|
{
|
||
|
char _m0_pad[16];
|
||
|
float a;
|
||
|
char _m1_pad[20];
|
||
|
float b;
|
||
|
};
|
||
|
|
||
|
kernel void main0(device SSBO& _9 [[buffer(0)]])
|
||
|
{
|
||
|
_9.a = 10.0;
|
||
|
_9.b = 20.0;
|
||
|
}
|
||
|
|