Login  Register

CommandQueue/Buffer change request

Posted by Matthias on Nov 21, 2011; 7:19pm
URL: https://forum.jogamp.org/CommandQueue-Buffer-change-request-tp3525736.html

Hello,

first, you have done great work with your libraries especially OpenCL.

But ... i have a problem when writing data to a device:

in CLCommanQueue you do:...

public CLCommandQueue putWriteBuffer(...
...
cl.clEnqueueWriteBuffer(
    ID, writeBuffer.ID, clBoolean(blockingWrite),
    0, writeBuffer.getNIOSize(), writeBuffer.buffer,                                                                                                  
    conditions, conditionIDs, events==null ? null : events.IDs);
...

is it possible to add a method in which the offset and length of the copy operation can be set,
or is it possible to replace writeBuffer.getNIOSize() with writeBuffer.limit() .. and offset 0 with .mark()?
So that buffers can be partially written to a device.

regards