22 lines
467 B
Plaintext
22 lines
467 B
Plaintext
#include <metal_stdlib>
|
|
#include <simd/simd.h>
|
|
|
|
using namespace metal;
|
|
|
|
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;
|
|
constant uint3 gl_WorkGroupSize = uint3(_5, 20u, _6);
|
|
|
|
struct SSBO
|
|
{
|
|
float a;
|
|
};
|
|
|
|
kernel void main0(device SSBO& _4 [[buffer(0)]])
|
|
{
|
|
_4.a += 1.0;
|
|
}
|
|
|