diff options
author | Michael Bien <[email protected]> | 2011-05-27 03:00:12 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2011-05-27 03:00:12 +0200 |
commit | a444a384b808e423f2e8377ff14c69b0c4be043a (patch) | |
tree | 56050afad314344ee8c99aa57698969da97b3d97 /src/com/jogamp/opencl/CLKernel.java | |
parent | 08a479b22d4ba9da9ee79fc938ac4de7fb83dc5a (diff) |
LLB refactoring.
- split up CL into multiple sub interfaces
- seperation is now feature wise
- introdused llb package for low level classes
Diffstat (limited to 'src/com/jogamp/opencl/CLKernel.java')
-rw-r--r-- | src/com/jogamp/opencl/CLKernel.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/jogamp/opencl/CLKernel.java b/src/com/jogamp/opencl/CLKernel.java index 4c898b4b..d833eca6 100644 --- a/src/com/jogamp/opencl/CLKernel.java +++ b/src/com/jogamp/opencl/CLKernel.java @@ -35,7 +35,7 @@ import java.nio.Buffer; import java.nio.ByteBuffer; import static com.jogamp.opencl.CLException.*; -import static com.jogamp.opencl.CL.*; +import static com.jogamp.opencl.llb.CL.*; import static com.jogamp.common.os.Platform.*; /** @@ -316,10 +316,11 @@ public class CLKernel extends CLObject implements CLResource, Cloneable { /** * Releases all resources of this kernel from its context. */ + @Override public void release() { int ret = cl.clReleaseKernel(ID); program.onKernelReleased(this); - if(ret != CL.CL_SUCCESS) { + if(ret != CL_SUCCESS) { throw newException(ret, "can not release "+this); } } |