Package com.aparapi.internal.jni
Class KernelArgJNI
- java.lang.Object
-
- com.aparapi.internal.jni.KernelArgJNI
-
- Direct Known Subclasses:
KernelArg
public abstract class KernelArgJNI extends java.lang.ObjectThis class is intended to be used as a 'proxy' or 'facade' object for Java code to interact with JNI
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.ObjectarrayOnly set for array objs, not used on JNIprotected java.lang.Objectbufferprotected int[]dimsIf this is an multidimensional array then the dimensions are stored hereprotected java.lang.reflect.FieldfieldField in Kernel class corresponding to this argprotected java.lang.ObjectjavaArrayIf this field represents a Java array then the instance will be captured hereprotected java.lang.ObjectjavaBufferIf this field represents an codegen buffer then the instance will be captured hereprotected java.lang.StringnameName of the fieldprotected intnumDimsIf this is an multidimensional array then the number of dimensions is stored hereprotected intnumElementsIf this is an array buffer then the number of elements is stored hereprotected intsizeInBytesIf this is an array or a buffer then the size (in bytes) is held hereprotected inttypeThe type of this KernelArg.
-
Constructor Summary
Constructors Constructor Description KernelArgJNI()
-
-
-
Field Detail
-
type
protected int type
The type of this KernelArg. Created by or-ing appropriate flags- See Also:
KernelRunnerJNI.ARG_BOOLEAN,KernelRunnerJNI.ARG_BYTE,KernelRunnerJNI.ARG_CHAR,KernelRunnerJNI.ARG_FLOAT,KernelRunnerJNI.ARG_INT,KernelRunnerJNI.ARG_DOUBLE,KernelRunnerJNI.ARG_LONG,KernelRunnerJNI.ARG_SHORT,KernelRunnerJNI.ARG_ARRAY,KernelRunnerJNI.ARG_PRIMITIVE,KernelRunnerJNI.ARG_READ,KernelRunnerJNI.ARG_WRITE,KernelRunnerJNI.ARG_LOCAL,KernelRunnerJNI.ARG_GLOBAL,KernelRunnerJNI.ARG_CONSTANT,KernelRunnerJNI.ARG_ARRAYLENGTH,KernelRunnerJNI.ARG_EXPLICIT,KernelRunnerJNI.ARG_EXPLICIT_WRITE,KernelRunnerJNI.ARG_OBJ_ARRAY_STRUCT
-
name
protected java.lang.String name
Name of the field
-
javaArray
protected java.lang.Object javaArray
If this field represents a Java array then the instance will be captured here
-
javaBuffer
protected java.lang.Object javaBuffer
If this field represents an codegen buffer then the instance will be captured here
-
sizeInBytes
protected int sizeInBytes
If this is an array or a buffer then the size (in bytes) is held here
-
numElements
protected int numElements
If this is an array buffer then the number of elements is stored here
-
numDims
protected int numDims
If this is an multidimensional array then the number of dimensions is stored here
-
dims
protected int[] dims
If this is an multidimensional array then the dimensions are stored here
-
array
protected java.lang.Object array
Only set for array objs, not used on JNI
-
buffer
protected java.lang.Object buffer
-
field
protected java.lang.reflect.Field field
Field in Kernel class corresponding to this arg
-
-