diff options
author | Michael Bien <[email protected]> | 2010-01-18 15:24:29 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-01-18 15:24:29 +0100 |
commit | 09ac312a0645bd0d9adff580f29f20382dfbf8c9 (patch) | |
tree | 52e121e8c366c797f34008244243dd896cc1e88a /test/com/mbien/opencl/CLBufferTest.java | |
parent | c4aeea288271f57b3c8640a8cd4ba87d1c331814 (diff) |
introduced CLMemory as superclass for all memory objects.
added CLImage, CLImage2d and CLImage3d.
Diffstat (limited to 'test/com/mbien/opencl/CLBufferTest.java')
-rw-r--r-- | test/com/mbien/opencl/CLBufferTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/com/mbien/opencl/CLBufferTest.java b/test/com/mbien/opencl/CLBufferTest.java index 5395ef6f..c6b87290 100644 --- a/test/com/mbien/opencl/CLBufferTest.java +++ b/test/com/mbien/opencl/CLBufferTest.java @@ -1,6 +1,6 @@ package com.mbien.opencl; -import com.mbien.opencl.CLBuffer.Mem; +import com.mbien.opencl.CLMemory.Mem; import com.sun.opengl.util.BufferUtil; import java.nio.ByteBuffer; import org.junit.Test; @@ -77,11 +77,11 @@ public class CLBufferTest { .putReadBuffer(clBufferB, true) // read B .finish(); - assertEquals(2, context.getCLBuffers().size()); + assertEquals(2, context.getCLMemoryObjects().size()); clBufferA.release(); - assertEquals(1, context.getCLBuffers().size()); + assertEquals(1, context.getCLMemoryObjects().size()); clBufferB.release(); - assertEquals(0, context.getCLBuffers().size()); + assertEquals(0, context.getCLMemoryObjects().size()); // uploading worked when a==b. out.println("validating computed results..."); |