File size: 334 Bytes
f9791fd
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
#include <metal_stdlib>
using namespace metal;

kernel void first_kernel_kernel(device const float *input [[buffer(0)]],
                                              device float *output [[buffer(1)]],
                                              uint index [[thread_position_in_grid]]) {
    output[index] = input[index] + 1.0f;
}