Package org.lwjgl.opencl
Class CLKernel
java.lang.Object
org.lwjgl.PointerWrapperAbstract
org.lwjgl.opencl.CLKernel
- All Implemented Interfaces:
PointerWrapper
This class is a wrapper around a cl_kernel pointer.
- Author:
- Spasi
-
Field Summary
Fields inherited from class org.lwjgl.PointerWrapperAbstract
pointer -
Method Summary
Modifier and TypeMethodDescriptionintgetInfoInt(int param_name) Returns the integer value of the specified parameter.getInfoString(int param_name) Returns the String value of the specified parameter.final intlonggetWorkGroupInfoLong(CLDevice device, int param_name) Returns the long value of the specified parameter.longgetWorkGroupInfoSize(CLDevice device, int param_name) Returns the size_t value of the specified parameter.long[]getWorkGroupInfoSizeArray(CLDevice device, int param_name) Returns an array of size_t values of the specified parameter.final booleanisValid()Returns true if this object represents a valid pointer.setArg(int index, byte value) Sets a kernel argument at the specified index to the specified byte value.setArg(int index, double value) Sets a kernel argument at the specified index to the specified double value.setArg(int index, float value) Sets a kernel argument at the specified index to the specified float value.setArg(int index, int value) Sets a kernel argument at the specified index to the specified int value.setArg(int index, long value) Sets a kernel argument at the specified index to the specified long value.setArg(int index, short value) Sets a kernel argument at the specified index to the specified byte value.setArg(int index, org.lwjgl.opencl.CLObject value) Sets a kernel argument at the specified index to the specified pointer value.setArgSize(int index, long size) Sets the size of a __local kernel argument at the specified index.Methods inherited from class org.lwjgl.PointerWrapperAbstract
checkValid, equals, getPointer, hashCode, toString
-
Method Details
-
setArg
Sets a kernel argument at the specified index to the specified byte value.- Parameters:
index- the argument indexvalue- the argument value- Returns:
- this CLKernel object
-
setArg
Sets a kernel argument at the specified index to the specified byte value.- Parameters:
index- the argument indexvalue- the argument value- Returns:
- this CLKernel object
-
setArg
Sets a kernel argument at the specified index to the specified int value.- Parameters:
index- the argument indexvalue- the argument value- Returns:
- this CLKernel object
-
setArg
Sets a kernel argument at the specified index to the specified long value.- Parameters:
index- the argument indexvalue- the argument value- Returns:
- this CLKernel object
-
setArg
Sets a kernel argument at the specified index to the specified float value.- Parameters:
index- the argument indexvalue- the argument value- Returns:
- this CLKernel object
-
setArg
Sets a kernel argument at the specified index to the specified double value.- Parameters:
index- the argument indexvalue- the argument value- Returns:
- this CLKernel object
-
setArg
Sets a kernel argument at the specified index to the specified pointer value.- Parameters:
index- the argument indexvalue- the argument value- Returns:
- this CLKernel object
-
setArgSize
Sets the size of a __local kernel argument at the specified index.- Parameters:
index- the argument indexsize- the argument size- Returns:
- this CLKernel object
-
getInfoString
Returns the String value of the specified parameter.- Parameters:
param_name- the parameter- Returns:
- the parameter value
-
getInfoInt
public int getInfoInt(int param_name) Returns the integer value of the specified parameter.- Parameters:
param_name- the parameter- Returns:
- the parameter value
-
getWorkGroupInfoSize
Returns the size_t value of the specified parameter.- Parameters:
param_name- the parameter- Returns:
- the parameter value
-
getWorkGroupInfoSizeArray
Returns an array of size_t values of the specified parameter.- Parameters:
param_name- the parameter- Returns:
- the parameter values
-
getWorkGroupInfoLong
Returns the long value of the specified parameter. Can be used for both cl_ulong and cl_bitfield parameters.- Parameters:
param_name- the parameter- Returns:
- the parameter value
-
getParent
-
getReferenceCount
public final int getReferenceCount() -
isValid
public final boolean isValid()Description copied from class:PointerWrapperAbstractReturns true if this object represents a valid pointer. The pointer might be invalid because it is NULL or because some other action has deleted the object that this pointer represents.- Overrides:
isValidin classPointerWrapperAbstract- Returns:
- true if the pointer is valid
-