diff options
author | Michael Bien <[email protected]> | 2010-04-01 00:38:46 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-04-01 00:38:46 +0200 |
commit | fc0f84073394c6c06505f0c52215a72932b527c5 (patch) | |
tree | 7dafc9f55e0d24d8e28b4f96699c531ef26689f5 /src/com/mbien/opencl/CLCommandQueue.java | |
parent | 11734980ca3a3457ed67fd054fa3041ba9b8040e (diff) |
modifications due to class movement in gluegen.
Diffstat (limited to 'src/com/mbien/opencl/CLCommandQueue.java')
-rw-r--r-- | src/com/mbien/opencl/CLCommandQueue.java | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/com/mbien/opencl/CLCommandQueue.java b/src/com/mbien/opencl/CLCommandQueue.java index 66b0d392..cbdba9b8 100644 --- a/src/com/mbien/opencl/CLCommandQueue.java +++ b/src/com/mbien/opencl/CLCommandQueue.java @@ -1,15 +1,15 @@ package com.mbien.opencl; -import com.jogamp.gluegen.runtime.Int64Buffer; +import com.jogamp.common.nio.Int64Buffer; import com.mbien.opencl.gl.CLGLI; -import com.jogamp.gluegen.runtime.PointerBuffer; +import com.jogamp.common.nio.PointerBuffer; import java.nio.ByteBuffer; import java.nio.IntBuffer; import java.util.ArrayList; import java.util.EnumSet; import java.util.List; -import static com.jogamp.gluegen.runtime.Buffers.*; +import static com.jogamp.common.nio.Buffers.*; import static com.mbien.opencl.CLException.*; import static com.mbien.opencl.CL.*; import static com.mbien.opencl.util.CLUtil.*; @@ -1360,27 +1360,27 @@ public class CLCommandQueue extends CLObject implements CLResource { } private static PointerBuffer copy2NIO(PointerBuffer buffer, long a) { - return buffer.put(2, a).position(2); + return (PointerBuffer) buffer.put(2, a).position(2); } - private static PointerBuffer copy2NIO(PointerBuffer buffer, long a, long b) { - return buffer.position(1).put(a).put(b).position(1); - } - - private static PointerBuffer copy2NIO(PointerBuffer buffer, long a, long b, long c) { - return buffer.rewind().put(a).put(b).put(c).rewind(); - } +// private static PointerBuffer copy2NIO(PointerBuffer buffer, long a, long b) { +// return buffer.position(1).put(a).put(b).position(1); +// } +// +// private static PointerBuffer copy2NIO(PointerBuffer buffer, long a, long b, long c) { +// return buffer.rewind().put(a).put(b).put(c).rewind(); +// } private static Int64Buffer copy2NIO(Int64Buffer buffer, long a) { - return buffer.put(2, a).position(2); + return (Int64Buffer) buffer.put(2, a).position(2); } private static Int64Buffer copy2NIO(Int64Buffer buffer, long a, long b) { - return buffer.position(1).put(a).put(b).position(1); + return (Int64Buffer) ((Int64Buffer)buffer.position(1)).put(a).put(b).position(1); } private static Int64Buffer copy2NIO(Int64Buffer buffer, long a, long b, long c) { - return buffer.rewind().put(a).put(b).put(c).rewind(); + return (Int64Buffer) ((Int64Buffer)buffer.rewind()).put(a).put(b).put(c).rewind(); } /** |