/** * Releases a shared buffer object. * Call this method after the buffer object was acquired by * {@link #acquireBufferForSharingAsync(com.jme3.opencl.CommandQueue) } * to hand the control back to OpenGL. * The generated event object is directly released, resulting in * performance improvements. * @param queue the command queue */ public void releaseBufferForSharingNoEvent(CommandQueue queue) { //default implementation, overwrite for better performance releaseBufferForSharingAsync(queue).release(); }
/** * Releases a shared buffer object. * Call this method after the buffer object was acquired by * {@link #acquireBufferForSharingAsync(com.jme3.opencl.CommandQueue) } * to hand the control back to OpenGL. * The generated event object is directly released, resulting in * performance improvements. * @param queue the command queue */ public void releaseBufferForSharingNoEvent(CommandQueue queue) { //default implementation, overwrite for better performance releaseBufferForSharingAsync(queue).release(); }