18 lines
265 B
Plaintext
18 lines
265 B
Plaintext
#include <metal_stdlib>
|
|
#include <simd/simd.h>
|
|
|
|
using namespace metal;
|
|
|
|
struct SSBO
|
|
{
|
|
float4 value;
|
|
};
|
|
|
|
constant uint3 gl_WorkGroupSize [[maybe_unused]] = uint3(1u);
|
|
|
|
kernel void main0(volatile device SSBO& _10 [[buffer(0)]])
|
|
{
|
|
_10.value = float4(20.0);
|
|
}
|
|
|