Top Description Fields Constructors Methods
com.jogamp.opencl.impl

public abstract Class CLTLInfoAccessor

extends Object
implements CLInfoAccessor
Class Inheritance
All Implemented Interfaces
com.jogamp.opencl.spi.CLInfoAccessor
Known Direct Subclasses
com.jogamp.opencl.CLEvent.CLEventInfoAccessor, com.jogamp.opencl.CLEvent.CLEventProfilingInfoAccessor, com.jogamp.opencl.CLImage.CLImageInfoAccessor, com.jogamp.opencl.CLSampler.CLSamplerInfoAccessor, com.jogamp.opencl.impl.CLTLAccessorFactory.CLDeviceInfoAccessor, com.jogamp.opencl.impl.CLTLAccessorFactory.CLTLPlatformInfoAccessor
Imports
java.nio.Buffer, .ByteBuffer, com.jogamp.common.nio.Buffers, .PointerBuffer, com.jogamp.common.os.Platform, com.jogamp.common.util.Bitstream, com.jogamp.opencl.CLException, com.jogamp.opencl.spi.CLInfoAccessor, com.jogamp.opencl.util.CLUtil

Internal utility for common OpenCL clGetFooInfo calls. Threadsafe, threadlocal implementation.
Author
Michael Bien, et al.

Field Summary

Modifier and TypeField and Description
private static final int
protected static final ThreadLocal<ByteBuffer>
protected static final ThreadLocal<PointerBuffer>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected ByteBuffer
getBB(final int minCapacity)

protected abstract int
getInfo(int name, long valueSize, Buffer value, PointerBuffer valueSizeRet)

public final int[]
getInts(final int key, final int n)

Implements com.jogamp.opencl.spi.CLInfoAccessor.getInts.

public final long
getLong(final int key)

Implements com.jogamp.opencl.spi.CLInfoAccessor.getLong.

Returns the long value for the given key.
protected PointerBuffer
public final String
getString(final int key)

Implements com.jogamp.opencl.spi.CLInfoAccessor.getString.

Returns the String value for the given key.
public final long
getUInt32Long(final int key)

Implements com.jogamp.opencl.spi.CLInfoAccessor.getUInt32Long.

Returns the uint32_t value for the given key, reinterpreted as a long value.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BB_SIZEback to summary
private static final int BB_SIZE
localBBback to summary
protected static final ThreadLocal<ByteBuffer> localBB
localNSBback to summary
protected static final ThreadLocal<PointerBuffer> localNSB

Constructor Detail

CLTLInfoAccessorback to summary
public CLTLInfoAccessor()

Method Detail

getBBback to summary
protected ByteBuffer getBB(final int minCapacity)
getInfoback to summary
protected abstract int getInfo(int name, long valueSize, Buffer value, PointerBuffer valueSizeRet)
getIntsback to summary
public final int[] getInts(final int key, final int n)

Implements com.jogamp.opencl.spi.CLInfoAccessor.getInts.

Annotations
@Override
getLongback to summary
public final long getLong(final int key)

Implements com.jogamp.opencl.spi.CLInfoAccessor.getLong.

Doc from com.jogamp.opencl.spi.CLInfoAccessor.getLong.

Returns the long value for the given key.

Annotations
@Override
getNSBback to summary
protected PointerBuffer getNSB()
getStringback to summary
public final String getString(final int key)

Implements com.jogamp.opencl.spi.CLInfoAccessor.getString.

Doc from com.jogamp.opencl.spi.CLInfoAccessor.getString.

Returns the String value for the given key.

Annotations
@Override
getUInt32Longback to summary
public final long getUInt32Long(final int key)

Implements com.jogamp.opencl.spi.CLInfoAccessor.getUInt32Long.

Doc from com.jogamp.opencl.spi.CLInfoAccessor.getUInt32Long.

Returns the uint32_t value for the given key, reinterpreted as a long value.

Annotations
@Override