Login  Register

Re: CLBuffer.getBuffer() & rewind

Posted by notzed on Feb 03, 2012; 10:02pm
URL: https://forum.jogamp.org/CLBuffer-getBuffer-rewind-tp3640166p3714419.html

Yes you have to use rewind() all the time if you're just using get() and put(x).

This is pretty much how the nio api's work afaik, and it wouldn't make much sense for a third party library to be twiddling with your buffer state.