Package com.aparapi.internal.jni
Class KernelArgJNI
java.lang.Object
com.aparapi.internal.jni.KernelArgJNI
- Direct Known Subclasses:
KernelArg
This class is intended to be used as a 'proxy' or 'facade' object for Java code to interact with JNI
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Object
Only set for array objs, not used on JNIprotected Object
protected int[]
If this is an multidimensional array then the dimensions are stored hereprotected Field
Field in Kernel class corresponding to this argprotected Object
If this field represents a Java array then the instance will be captured hereprotected Object
If this field represents an codegen buffer then the instance will be captured hereprotected String
Name of the fieldprotected int
If this is an multidimensional array then the number of dimensions is stored hereprotected int
If this is an array buffer then the number of elements is stored hereprotected int
If this is an array or a buffer then the size (in bytes) is held hereprotected int
The type of this KernelArg. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
type
protected int typeThe type of this KernelArg. Created by or-ing appropriate flags- See Also:
-
name
Name of the field -
javaArray
If this field represents a Java array then the instance will be captured here -
javaBuffer
If this field represents an codegen buffer then the instance will be captured here -
sizeInBytes
protected int sizeInBytesIf this is an array or a buffer then the size (in bytes) is held here -
numElements
protected int numElementsIf this is an array buffer then the number of elements is stored here -
numDims
protected int numDimsIf this is an multidimensional array then the number of dimensions is stored here -
dims
protected int[] dimsIf this is an multidimensional array then the dimensions are stored here -
array
Only set for array objs, not used on JNI -
buffer
-
field
Field in Kernel class corresponding to this arg
-
-
Constructor Details
-
KernelArgJNI
public KernelArgJNI()
-