I'm using the Cloo libary for C#.
I can't figure out or find anything about how to add a 2D array as a kernel argument.
Here is my code:
ComputeBuffer<char> field = new ComputeBuffer<char>(Program.context, ComputeMemoryFlags.ReadWrite | ComputeMemoryFlags.CopyHostPointer, veld);
It just gives me the error: 'Cannot convert from char[,] to long'. Implying it sees it as one of other the overloads.
What am I doing wrong?