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 /test/com/mbien/opencl | |
parent | 30cd68083930688693ebdfefdeda609d857a2c8a (diff) |
generified CLBuffer, added createFromGLBuffer(...).
Diffstat (limited to 'test/com/mbien/opencl')
-rw-r--r-- | test/com/mbien/opencl/HighLevelBindingTest.java | 10 |
1 files changed, 5 insertions, 5 deletions
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<ByteBuffer> clBufferA = context.createBuffer(srcA, Mem.READ_ONLY); + CLBuffer<ByteBuffer> clBufferB = context.createBuffer(srcB, Mem.READ_ONLY); + CLBuffer<ByteBuffer> clBufferC = context.createBuffer(dest, Mem.WRITE_ONLY); Map<String, CLKernel> 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<ByteBuffer> clBufferA = context.createBuffer(elements*SIZEOF_INT, Mem.READ_ONLY); + CLBuffer<ByteBuffer> 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); |