2017-09-29 09:07:11 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
#include <simd/simd.h>
|
|
|
|
|
|
|
|
using namespace metal;
|
|
|
|
|
2019-01-10 08:49:33 +00:00
|
|
|
struct SSBO
|
|
|
|
{
|
|
|
|
float a;
|
|
|
|
};
|
|
|
|
|
2017-09-29 09:07:11 +00:00
|
|
|
constant uint _5_tmp [[function_constant(10)]];
|
|
|
|
constant uint _5 = is_function_constant_defined(_5_tmp) ? _5_tmp : 9u;
|
|
|
|
constant uint _6_tmp [[function_constant(12)]];
|
|
|
|
constant uint _6 = is_function_constant_defined(_6_tmp) ? _6_tmp : 4u;
|
2019-03-28 09:54:18 +00:00
|
|
|
constant uint3 gl_WorkGroupSize [[maybe_unused]] = uint3(_5, 20u, _6);
|
2017-09-29 09:07:11 +00:00
|
|
|
|
|
|
|
kernel void main0(device SSBO& _4 [[buffer(0)]])
|
|
|
|
{
|
|
|
|
_4.a += 1.0;
|
|
|
|
}
|
|
|
|
|