I have 2 questions about the usage of cloo
1) When I create a ComputerBuffer with "MemFlags.MemReadOnly" (and nothing else) I got an "Invalid Host" error... why ?
When I use "MemFlags.MemReadOnly | MemFlags.MemCopyHostPtr" I don't have any error !
2) I send "constants" information to my kernel by declaring "__constant float *" in my kernel... but in the Cloo library, I have see :
protected override void Dispose( bool manual )
if( Handle != IntPtr.Zero )
CL.ReleaseMemObject( Handle );
Handle = IntPtr.Zero;
So, will the Dispose method by automatically called or should I call it. If it is automatically called by .NET, my "constant" buffer will be release on the Kernel !! ... then I will get an error ?