Login  Register

putMapBuffer on CPU-based OpenCL devices

Posted by suleman on Jun 27, 2011; 4:04pm
URL: https://forum.jogamp.org/putMapBuffer-on-CPU-based-OpenCL-devices-tp3114277.html

Hi,

I have two questions.
(1) Is putMapBuffer (CLCommandQueue class) used on CPU based OpenCL devices results in no-copy on CPU devices?
(2) "putMapBuffer"  method always returns a ByteBuffer?  am i required to cast this bytebuffer to other types or not? Any example will be great. e.g. i have a flot buffer and i want to map this instead of using putReadBuffer and putWriteBuffer buffers on CPUs

Thanks