
CLOO - Doubt using ComputeCommandQueue.Read()
Posted Thursday, 18 March, 2010 - 12:59 by exoide inHi there,
This is the first time I use CLOO, I've the version 0.7.0.
In the examples I've seen the Read() method returns the result and requires only 5 parameters. But in the current version it returns nothing and uses 6 parameters, here's my sentence:
float[] result = new float[1]; queue.Read(bufferResult, false, 0, 1, result, null);
But I get the following error " cannot convert from 'float[]' to 'System.IntPtr' " in the fifth parameter.
Can someone help me fix this?
Thank you.


Comments
Re: CLOO - Doubt using ComputeCommandQueue.Read()
The following comes from the "VectorAdd" example (in Clootils):
This method has replaced the one you mention because the predecessor wasn't working under all circumstances.