summaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/CLMemory.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-03-29 04:09:24 +0200
committerMichael Bien <[email protected]>2010-03-29 04:09:24 +0200
commit1c0265824a1a86e758abf7f0a0b1d1e43c5ef167 (patch)
tree369232785f03fd4844ae073ef063dd5a09576173 /src/com/mbien/opencl/CLMemory.java
parent9dab3d93ffaa04f9cf370648c67219694c58555a (diff)
changes due to BufferFactory -> Buffers renaming in gluegen.
Diffstat (limited to 'src/com/mbien/opencl/CLMemory.java')
-rw-r--r--src/com/mbien/opencl/CLMemory.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/com/mbien/opencl/CLMemory.java b/src/com/mbien/opencl/CLMemory.java
index ff34b344..ad423e73 100644
--- a/src/com/mbien/opencl/CLMemory.java
+++ b/src/com/mbien/opencl/CLMemory.java
@@ -1,7 +1,7 @@
package com.mbien.opencl;
import com.mbien.opencl.gl.CLGLI;
-import com.jogamp.gluegen.runtime.BufferFactory;
+import com.jogamp.gluegen.runtime.Buffers;
import com.jogamp.gluegen.runtime.PointerBuffer;
import java.nio.Buffer;
import java.nio.ByteBuffer;
@@ -46,15 +46,15 @@ public abstract class CLMemory <B extends Buffer> extends CLObject implements CL
protected static int sizeOfBufferElem(Buffer buffer) {
if (buffer instanceof ByteBuffer) {
- return BufferFactory.SIZEOF_BYTE;
+ return Buffers.SIZEOF_BYTE;
} else if (buffer instanceof IntBuffer) {
- return BufferFactory.SIZEOF_INT;
+ return Buffers.SIZEOF_INT;
} else if (buffer instanceof ShortBuffer) {
- return BufferFactory.SIZEOF_SHORT;
+ return Buffers.SIZEOF_SHORT;
} else if (buffer instanceof FloatBuffer) {
- return BufferFactory.SIZEOF_FLOAT;
+ return Buffers.SIZEOF_FLOAT;
} else if (buffer instanceof DoubleBuffer) {
- return BufferFactory.SIZEOF_DOUBLE;
+ return Buffers.SIZEOF_DOUBLE;
}
throw new RuntimeException("Unexpected buffer type " + buffer.getClass().getName());
}