Hi,
This is my shader code, it is throwing runtime error during building library. It seems like compilation errors. How to use templates exactly?
template<typename T>
kernel void add(const device T *In1 [[buffer(0)]],
const device T *In2 [[buffer(1)]],
device T *Out [[buffer(2)]],
uint tid [[thread_position_in_grid]]){
Out[tid] = In1[tid] + In2[tid];
}Thank you! 🙂