From fe1e2739bf7596bc488de977166603edd18c41fb Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Wed, 21 Oct 2009 17:17:21 +0200 Subject: added CopyBuffer implementation to CLCommandQueue and and test method to HighLevelBindingTest. --- src/com/mbien/opencl/CLContext.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/com/mbien/opencl/CLContext.java') diff --git a/src/com/mbien/opencl/CLContext.java b/src/com/mbien/opencl/CLContext.java index db32a446..76fbc2ee 100644 --- a/src/com/mbien/opencl/CLContext.java +++ b/src/com/mbien/opencl/CLContext.java @@ -1,5 +1,6 @@ package com.mbien.opencl; +import com.sun.gluegen.runtime.BufferFactory; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; @@ -104,6 +105,10 @@ public final class CLContext { return buffer; } + public CLBuffer createBuffer(int flags, int size) { + return createBuffer(flags, BufferFactory.newDirectByteBuffer(size)); + } + CLCommandQueue createCommandQueue(CLDevice device, long properties) { CLCommandQueue queue = new CLCommandQueue(this, device, properties); -- cgit v1.2.3