diff options
author | Wade Walker <[email protected]> | 2015-10-03 14:14:25 -0500 |
---|---|---|
committer | Wade Walker <[email protected]> | 2015-11-08 14:05:30 -0600 |
commit | 4f45fe8db1b5c3790ef2659995c2065807c3fe74 (patch) | |
tree | 8a0855248986e287aeaeb4e4402c4b2139b0a0bd /src/com/jogamp/opencl/CLMemory.java | |
parent | 7c7146428a0584ad38f036d24a70c15f700f9a8e (diff) |
Remove use of CL*Binding interfaces
In preparation for removing the interfaces themselves
Diffstat (limited to 'src/com/jogamp/opencl/CLMemory.java')
-rw-r--r-- | src/com/jogamp/opencl/CLMemory.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/com/jogamp/opencl/CLMemory.java b/src/com/jogamp/opencl/CLMemory.java index 9fb81e7e..cf1d8802 100644 --- a/src/com/jogamp/opencl/CLMemory.java +++ b/src/com/jogamp/opencl/CLMemory.java @@ -28,7 +28,6 @@ package com.jogamp.opencl; -import com.jogamp.opencl.llb.CLMemObjBinding; import com.jogamp.common.nio.Buffers; import com.jogamp.common.nio.PointerBuffer; import com.jogamp.opencl.llb.CL; @@ -57,7 +56,7 @@ public abstract class CLMemory <B extends Buffer> extends CLObjectResource { protected int elementSize; protected int clCapacity; - private final CLMemObjBinding binding; + private final CL binding; protected <Buffer> CLMemory(final CLContext context, final long size, final long id, final int flags) { this(context, null, size, id, flags); @@ -68,7 +67,7 @@ public abstract class CLMemory <B extends Buffer> extends CLObjectResource { this.buffer = directBuffer; this.FLAGS = flags; this.size = size; - this.binding = context.getPlatform().getMemObjectBinding(); + this.binding = context.getPlatform().getCLBinding(); initElementSize(); initCLCapacity(); } @@ -91,7 +90,7 @@ public abstract class CLMemory <B extends Buffer> extends CLObjectResource { protected static long getSizeImpl(final CLContext context, final long id) { final PointerBuffer pb = PointerBuffer.allocateDirect(1); - final CLMemObjBinding binding = context.getPlatform().getMemObjectBinding(); // FIXME: CL separation makes this pretty complicated ! + final CL binding = context.getPlatform().getCLBinding(); // FIXME: CL separation makes this pretty complicated ! final int ret = binding.clGetMemObjectInfo(id, CL_MEM_SIZE, pb.elementSize(), pb.getBuffer(), null); checkForError(ret, "can not obtain buffer info"); return pb.get(); |