diff options
author | Wade Walker <[email protected]> | 2015-10-03 15:12:24 -0500 |
---|---|---|
committer | Wade Walker <[email protected]> | 2015-11-08 14:05:31 -0600 |
commit | 37c656e3290ff855e1752f9b8a4b830da3000b85 (patch) | |
tree | 76e0de5d788d0c250c076a481c1d376c2479c005 /src/com/jogamp/opencl/impl | |
parent | 4f45fe8db1b5c3790ef2659995c2065807c3fe74 (diff) |
Remove creation and all references to CL*Binding interfaces
This completes the removal of all CL*Binding interfaces; all tests pass
at this point.
Diffstat (limited to 'src/com/jogamp/opencl/impl')
-rw-r--r-- | src/com/jogamp/opencl/impl/CLTLAccessorFactory.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/com/jogamp/opencl/impl/CLTLAccessorFactory.java b/src/com/jogamp/opencl/impl/CLTLAccessorFactory.java index 8422c4ad..7195d592 100644 --- a/src/com/jogamp/opencl/impl/CLTLAccessorFactory.java +++ b/src/com/jogamp/opencl/impl/CLTLAccessorFactory.java @@ -35,7 +35,6 @@ package com.jogamp.opencl.impl; import java.nio.IntBuffer; import com.jogamp.common.nio.PointerBuffer; import com.jogamp.opencl.llb.CL; -import com.jogamp.opencl.llb.CLDeviceBinding; import com.jogamp.opencl.spi.CLAccessorFactory; import com.jogamp.opencl.spi.CLInfoAccessor; import com.jogamp.opencl.spi.CLPlatformInfoAccessor; @@ -50,7 +49,7 @@ import static com.jogamp.opencl.CLException.*; public class CLTLAccessorFactory implements CLAccessorFactory { @Override - public CLInfoAccessor createDeviceInfoAccessor(final CLDeviceBinding cl, final long id) { + public CLInfoAccessor createDeviceInfoAccessor(final CL cl, final long id) { return new CLDeviceInfoAccessor(cl, id); } @@ -61,10 +60,10 @@ public class CLTLAccessorFactory implements CLAccessorFactory { private final static class CLDeviceInfoAccessor extends CLTLInfoAccessor { - private final CLDeviceBinding cl; + private final CL cl; private final long ID; - private CLDeviceInfoAccessor(final CLDeviceBinding cl, final long id) { + private CLDeviceInfoAccessor(final CL cl, final long id) { this.cl = cl; this.ID = id; } @@ -99,7 +98,7 @@ public class CLTLAccessorFactory implements CLAccessorFactory { final int count = buffer.get(0); // return an empty buffer rather than throwing an exception - if(ret == CLDeviceBinding.CL_DEVICE_NOT_FOUND || count == 0) { + if(ret == CL.CL_DEVICE_NOT_FOUND || count == 0) { return new long[0]; }else{ checkForError(ret, "error while enumerating devices"); |