From 09ac312a0645bd0d9adff580f29f20382dfbf8c9 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Mon, 18 Jan 2010 15:24:29 +0100 Subject: introduced CLMemory as superclass for all memory objects. added CLImage, CLImage2d and CLImage3d. --- src/com/mbien/opencl/CLCommandQueue.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/com/mbien/opencl/CLCommandQueue.java') diff --git a/src/com/mbien/opencl/CLCommandQueue.java b/src/com/mbien/opencl/CLCommandQueue.java index 06308f08..bc50210e 100644 --- a/src/com/mbien/opencl/CLCommandQueue.java +++ b/src/com/mbien/opencl/CLCommandQueue.java @@ -55,7 +55,7 @@ public class CLCommandQueue implements CLResource { int ret = cl.clEnqueueWriteBuffer( ID, writeBuffer.ID, blockingWrite ? CL_TRUE : CL_FALSE, - 0, writeBuffer.getSizeInBytes(), writeBuffer.buffer, + 0, writeBuffer.getSize(), writeBuffer.buffer, 0, null, events==null ? null : events.IDs); if(ret != CL_SUCCESS) @@ -77,7 +77,7 @@ public class CLCommandQueue implements CLResource { int ret = cl.clEnqueueReadBuffer( ID, readBuffer.ID, blockingRead ? CL_TRUE : CL_FALSE, - 0, readBuffer.getSizeInBytes(), readBuffer.buffer, + 0, readBuffer.getSize(), readBuffer.buffer, 0, null, events==null ? null : events.IDs); if(ret != CL_SUCCESS) -- cgit v1.2.3