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>
localBB
protected 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 ByteBuffer
getBB(int minCapacity)
protected abstract int
getInfo(int name, long valueSize, Buffer value, PointerBuffer valueSizeRet)
int[]
getInts(int key, int n)
long
getLong(int key)
Returns the long value for the given key.protected PointerBuffer
getNSB()
String
getString(int key)
Returns the String value for the given key.long
getUInt32Long(int key)
Returns theuint32_t
value for the given key, reinterpreted as along
value.
-
-
-
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:CLInfoAccessor
Returns theuint32_t
value for the given key, reinterpreted as along
value.- Specified by:
getUInt32Long
in interfaceCLInfoAccessor
-
getLong
public final long getLong(int key)
Description copied from interface:CLInfoAccessor
Returns the long value for the given key.- Specified by:
getLong
in interfaceCLInfoAccessor
-
getString
public final String getString(int key)
Description copied from interface:CLInfoAccessor
Returns the String value for the given key.- Specified by:
getString
in interfaceCLInfoAccessor
-
getInts
public final int[] getInts(int key, int n)
- Specified by:
getInts
in interfaceCLInfoAccessor
-
getBB
protected ByteBuffer getBB(int minCapacity)
-
getNSB
protected PointerBuffer getNSB()
-
getInfo
protected abstract int getInfo(int name, long valueSize, Buffer value, PointerBuffer valueSizeRet)
-
-