diff options
author | Michael Bien <[email protected]> | 2009-10-27 18:51:36 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2009-10-27 18:51:36 +0100 |
commit | 4df2a1b266a25c1d37126acdb82cf578ac61f9a8 (patch) | |
tree | c9543bcae35dd674d09aa47eb712b9b261638d67 /src/com/mbien/opencl/CLCommandQueue.java | |
parent | 30cd68083930688693ebdfefdeda609d857a2c8a (diff) |
generified CLBuffer, added createFromGLBuffer(...).
Diffstat (limited to 'src/com/mbien/opencl/CLCommandQueue.java')
-rw-r--r-- | src/com/mbien/opencl/CLCommandQueue.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/mbien/opencl/CLCommandQueue.java b/src/com/mbien/opencl/CLCommandQueue.java index 00e1d6b0..28c4bad0 100644 --- a/src/com/mbien/opencl/CLCommandQueue.java +++ b/src/com/mbien/opencl/CLCommandQueue.java @@ -30,7 +30,7 @@ public class CLCommandQueue { throw new CLException(status[0], "can not create command queue on "+device); } - public CLCommandQueue putWriteBuffer(CLBuffer writeBuffer, boolean blockingWrite) { + public CLCommandQueue putWriteBuffer(CLBuffer<?> writeBuffer, boolean blockingWrite) { int ret = cl.clEnqueueWriteBuffer( ID, writeBuffer.ID, blockingWrite ? CL.CL_TRUE : CL.CL_FALSE, @@ -44,7 +44,7 @@ public class CLCommandQueue { return this; } - public CLCommandQueue putReadBuffer(CLBuffer readBuffer, boolean blockingRead) { + public CLCommandQueue putReadBuffer(CLBuffer<?> readBuffer, boolean blockingRead) { int ret = cl.clEnqueueReadBuffer( ID, readBuffer.ID, blockingRead ? CL.CL_TRUE : CL.CL_FALSE, @@ -64,7 +64,7 @@ public class CLCommandQueue { return this; } - public CLCommandQueue putCopyBuffer(CLBuffer src, CLBuffer dest, long bytesToCopy) { + public CLCommandQueue putCopyBuffer(CLBuffer<?> src, CLBuffer<?> dest, long bytesToCopy) { int ret = cl.clEnqueueCopyBuffer( ID, src.ID, dest.ID, src.buffer.position(), dest.buffer.position(), bytesToCopy, // 0, null, null); //TODO solve NPE in gluegen when PointerBuffer == null |