| 1 |
#include <metal_stdlib> |
| 2 |
#include <simd/simd.h> |
| 3 |
|
| 4 |
using namespace metal; |
| 5 |
|
| 6 |
struct SSBO |
| 7 |
{ |
| 8 |
float4 out_data[1]; |
| 9 |
}; |
| 10 |
|
| 11 |
constant uint3 gl_WorkGroupSize [[maybe_unused]] = uint3(1u); |
| 12 |
|
| 13 |
constant float4 _53 = {}; |
| 14 |
|
| 15 |
kernel void main0(device SSBO& _27 [[buffer(0)]], uint3 gl_GlobalInvocationID [[thread_position_in_grid]]) |
| 16 |
{ |
| 17 |
float4 _46 = _53; |
| 18 |
_46.x = 10.0; |
| 19 |
float4 _48 = _46; |
| 20 |
_48.y = 30.0; |
| 21 |
float4 _50 = _48; |
| 22 |
_50.z = 70.0; |
| 23 |
float4 _52 = _50; |
| 24 |
_52.w = 90.0; |
| 25 |
_27.out_data[gl_GlobalInvocationID.x] = _52; |
| 26 |
((device float*)&_27.out_data[gl_GlobalInvocationID.x])[1u] = 20.0; |
| 27 |
} |
| 28 |
|