JOCL v2.6.0-rc-20250722
JOCL, OpenCL® API Binding for Java™ (public API).
com.jogamp.opencl.impl.CLTLInfoAccessor Class Referenceabstract

Internal utility for common OpenCL clGetFooInfo calls. More...

Inheritance diagram for com.jogamp.opencl.impl.CLTLInfoAccessor:
Collaboration diagram for com.jogamp.opencl.impl.CLTLInfoAccessor:

Public Member Functions

final long getUInt32Long (final int key)
 Returns the uint32_t value for the given key, reinterpreted as a long value. More...
 
final long getLong (final int key)
 Returns the long value for the given key. More...
 
final String getString (final int key)
 Returns the String value for the given key. More...
 
final int[] getInts (final int key, final int n)
 
int[] getInts (int key, int n)
 
long getUInt32Long (int key)
 Returns the uint32_t value for the given key, reinterpreted as a long value. More...
 
long getLong (int key)
 Returns the long value for the given key. More...
 
String getString (int key)
 Returns the String value for the given key. More...
 

Protected Member Functions

ByteBuffer getBB (final int minCapacity)
 
PointerBuffer getNSB ()
 
abstract int getInfo (int name, long valueSize, Buffer value, PointerBuffer valueSizeRet)
 

Static Protected Attributes

static final ThreadLocal< ByteBuffer > localBB
 
static final ThreadLocal< PointerBuffer > localNSB
 

Detailed Description

Internal utility for common OpenCL clGetFooInfo calls.

Threadsafe, threadlocal implementation.

Author
Michael Bien, et al.

Definition at line 47 of file CLTLInfoAccessor.java.

Member Function Documentation

◆ getBB()

ByteBuffer com.jogamp.opencl.impl.CLTLInfoAccessor.getBB ( final int  minCapacity)
protected

Definition at line 126 of file CLTLInfoAccessor.java.

Here is the caller graph for this function:

◆ getInfo()

abstract int com.jogamp.opencl.impl.CLTLInfoAccessor.getInfo ( int  name,
long  valueSize,
Buffer  value,
PointerBuffer  valueSizeRet 
)
abstractprotected

Reimplemented in com.jogamp.opencl.CLImage< B extends Buffer >.CLImageInfoAccessor.

Here is the caller graph for this function:

◆ getInts()

final int[] com.jogamp.opencl.impl.CLTLInfoAccessor.getInts ( final int  key,
final int  n 
)

Implements com.jogamp.opencl.spi.CLInfoAccessor.

Definition at line 107 of file CLTLInfoAccessor.java.

Here is the call graph for this function:

◆ getLong()

final long com.jogamp.opencl.impl.CLTLInfoAccessor.getLong ( final int  key)

Returns the long value for the given key.

Implements com.jogamp.opencl.spi.CLInfoAccessor.

Definition at line 77 of file CLTLInfoAccessor.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getNSB()

PointerBuffer com.jogamp.opencl.impl.CLTLInfoAccessor.getNSB ( )
protected

Definition at line 134 of file CLTLInfoAccessor.java.

Here is the caller graph for this function:

◆ getString()

final String com.jogamp.opencl.impl.CLTLInfoAccessor.getString ( final int  key)

Returns the String value for the given key.

Implements com.jogamp.opencl.spi.CLInfoAccessor.

Definition at line 87 of file CLTLInfoAccessor.java.

Here is the call graph for this function:

◆ getUInt32Long()

final long com.jogamp.opencl.impl.CLTLInfoAccessor.getUInt32Long ( final int  key)

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

Implements com.jogamp.opencl.spi.CLInfoAccessor.

Definition at line 69 of file CLTLInfoAccessor.java.

Here is the call graph for this function:

Member Data Documentation

◆ localBB

final ThreadLocal<ByteBuffer> com.jogamp.opencl.impl.CLTLInfoAccessor.localBB
staticprotected
Initial value:
= new ThreadLocal<ByteBuffer>() {
@Override
protected ByteBuffer initialValue() {
return Buffers.newDirectByteBuffer(BB_SIZE);
}
}

Definition at line 51 of file CLTLInfoAccessor.java.

◆ localNSB

final ThreadLocal<PointerBuffer> com.jogamp.opencl.impl.CLTLInfoAccessor.localNSB
staticprotected
Initial value:
= new ThreadLocal<PointerBuffer>() {
@Override
protected PointerBuffer initialValue() {
return PointerBuffer.allocateDirect(1);
}
}

Definition at line 59 of file CLTLInfoAccessor.java.


The documentation for this class was generated from the following file: