diff options
author | Michael Bien <[email protected]> | 2010-01-15 16:45:29 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-01-15 16:45:29 +0100 |
commit | 64f212c105fd0f23e8116307b64ee4b87928823d (patch) | |
tree | 02adbfa7a3ef1a9b0c5379ae86a9fe1187b7314c /src/com/mbien/opencl/CLSampler.java | |
parent | d446e57f45811c23da651f7a5f481ddaed4c01c6 (diff) |
CLInfoAccessor uses now threadlocal direct nio buffers for all operations.
javadoc improvements.
added event based profiling functionality.
Diffstat (limited to 'src/com/mbien/opencl/CLSampler.java')
-rw-r--r-- | src/com/mbien/opencl/CLSampler.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/mbien/opencl/CLSampler.java b/src/com/mbien/opencl/CLSampler.java index 6977e2bd..6732abaf 100644 --- a/src/com/mbien/opencl/CLSampler.java +++ b/src/com/mbien/opencl/CLSampler.java @@ -1,5 +1,6 @@ package com.mbien.opencl; +import com.sun.gluegen.runtime.PointerBuffer; import java.nio.Buffer; import static com.mbien.opencl.CLException.*; @@ -55,8 +56,8 @@ public class CLSampler implements CLResource { private class CLSamplerInfoAccessor extends CLInfoAccessor { @Override - protected int getInfo(int name, long valueSize, Buffer value, long[] valueSizeRet, int valueSizeRetOffset) { - return cl.clGetSamplerInfo(ID, name, valueSize, value, valueSizeRet, valueSizeRetOffset); + protected int getInfo(int name, long valueSize, Buffer value, PointerBuffer valueSizeRet) { + return cl.clGetSamplerInfo(ID, name, valueSize, value, valueSizeRet); } } |