From 4df2a1b266a25c1d37126acdb82cf578ac61f9a8 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Tue, 27 Oct 2009 18:51:36 +0100 Subject: generified CLBuffer, added createFromGLBuffer(...). --- test/com/mbien/opencl/HighLevelBindingTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test') diff --git a/test/com/mbien/opencl/HighLevelBindingTest.java b/test/com/mbien/opencl/HighLevelBindingTest.java index a0a2c13d..85dbda1d 100644 --- a/test/com/mbien/opencl/HighLevelBindingTest.java +++ b/test/com/mbien/opencl/HighLevelBindingTest.java @@ -106,9 +106,9 @@ public class HighLevelBindingTest { fillBuffer(srcA, 23456); fillBuffer(srcB, 46987); - CLBuffer clBufferA = context.createBuffer(srcA, Mem.READ_ONLY); - CLBuffer clBufferB = context.createBuffer(srcB, Mem.READ_ONLY); - CLBuffer clBufferC = context.createBuffer(dest, Mem.WRITE_ONLY); + CLBuffer clBufferA = context.createBuffer(srcA, Mem.READ_ONLY); + CLBuffer clBufferB = context.createBuffer(srcB, Mem.READ_ONLY); + CLBuffer clBufferC = context.createBuffer(dest, Mem.WRITE_ONLY); Map kernels = program.getCLKernels(); for (CLKernel kernel : kernels.values()) { @@ -171,8 +171,8 @@ public class HighLevelBindingTest { CLContext context = CLContext.create(); // the CL.MEM_* flag is probably completly irrelevant in our case since we do not use a kernel in this test - CLBuffer clBufferA = context.createBuffer(elements*SIZEOF_INT, Mem.READ_ONLY); - CLBuffer clBufferB = context.createBuffer(elements*SIZEOF_INT, Mem.READ_ONLY); + CLBuffer clBufferA = context.createBuffer(elements*SIZEOF_INT, Mem.READ_ONLY); + CLBuffer clBufferB = context.createBuffer(elements*SIZEOF_INT, Mem.READ_ONLY); // fill only first read buffer -> we will copy the payload to the second later. fillBuffer(clBufferA.buffer, 12345); -- cgit v1.2.3