Package com.jogamp.opencl.impl
Class CLTLInfoAccessor
- java.lang.Object
-
- com.jogamp.opencl.impl.CLTLInfoAccessor
-
- All Implemented Interfaces:
CLInfoAccessor
- Direct Known Subclasses:
CLImage.CLImageInfoAccessor
public abstract class CLTLInfoAccessor extends Object implements CLInfoAccessor
Internal utility for common OpenCL clGetFooInfo calls. Threadsafe, threadlocal implementation.- Author:
- Michael Bien, et al.
-
-
Field Summary
Fields Modifier and Type Field Description protected static ThreadLocal<ByteBuffer>localBBprotected static ThreadLocal<PointerBuffer>localNSB
-
Constructor Summary
Constructors Constructor Description CLTLInfoAccessor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected ByteBuffergetBB(int minCapacity)protected abstract intgetInfo(int name, long valueSize, Buffer value, PointerBuffer valueSizeRet)int[]getInts(int key, int n)longgetLong(int key)Returns the long value for the given key.protected PointerBuffergetNSB()StringgetString(int key)Returns the String value for the given key.longgetUInt32Long(int key)Returns theuint32_tvalue for the given key, reinterpreted as alongvalue.
-
-
-
Field Detail
-
localBB
protected static final ThreadLocal<ByteBuffer> localBB
-
localNSB
protected static final ThreadLocal<PointerBuffer> localNSB
-
-
Method Detail
-
getUInt32Long
public final long getUInt32Long(int key)
Description copied from interface:CLInfoAccessorReturns theuint32_tvalue for the given key, reinterpreted as alongvalue.- Specified by:
getUInt32Longin interfaceCLInfoAccessor
-
getLong
public final long getLong(int key)
Description copied from interface:CLInfoAccessorReturns the long value for the given key.- Specified by:
getLongin interfaceCLInfoAccessor
-
getString
public final String getString(int key)
Description copied from interface:CLInfoAccessorReturns the String value for the given key.- Specified by:
getStringin interfaceCLInfoAccessor
-
getInts
public final int[] getInts(int key, int n)- Specified by:
getIntsin interfaceCLInfoAccessor
-
getBB
protected ByteBuffer getBB(int minCapacity)
-
getNSB
protected PointerBuffer getNSB()
-
getInfo
protected abstract int getInfo(int name, long valueSize, Buffer value, PointerBuffer valueSizeRet)
-
-