Package org.lwjgl.opencl
Class CLProgram
java.lang.Object
org.lwjgl.PointerWrapperAbstract
org.lwjgl.opencl.CLProgram
- All Implemented Interfaces:
PointerWrapper
This class is a wrapper around a cl_program pointer.
- Author:
- Spasi
-
Field Summary
Fields inherited from class org.lwjgl.PointerWrapperAbstract
pointer
-
Method Summary
Modifier and TypeMethodDescriptionCLKernel[]
Creates kernel objects for all kernels functions in this program.int
getBuildInfoInt
(CLDevice device, int param_name) Returns the integer value of the specified parameter.getBuildInfoString
(CLDevice device, int param_name) Returns the String value of the specified parameter.getCLKernel
(long id) Returns a CLKernel associated with this program.getInfoBinaries
(ByteBuffer target) Returns the program binaries for all devices associated with program, written sequentially in the target ByteBuffer.getInfoBinaries
(ByteBuffer[] target) Returns the program binaries for all devices associated with program, as a ByteBuffer array.CLDevice[]
Returns an array of CLDevices associated with this program.int
getInfoInt
(int param_name) Returns the integer value of the specified parameter.long[]
getInfoSizeArray
(int param_name) Returns an array of size_t values of the specified parameter.getInfoString
(int param_name) Returns the String value of the specified parameter.final int
final boolean
isValid()
Returns true if this object represents a valid pointer.Methods inherited from class org.lwjgl.PointerWrapperAbstract
checkValid, equals, getPointer, hashCode, toString
-
Method Details
-
getCLKernel
Returns a CLKernel associated with this program.- Parameters:
id
- the kernel id- Returns:
- the CLKernel object
-
createKernelsInProgram
Creates kernel objects for all kernels functions in this program.- Returns:
- a CLKernel array
-
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
-
getInfoSizeArray
public long[] getInfoSizeArray(int param_name) Returns an array of size_t values of the specified parameter.- Parameters:
param_name
- the parameter- Returns:
- the parameter values
-
getInfoDevices
Returns an array of CLDevices associated with this program.- Returns:
- the array of devices
-
getInfoBinaries
Returns the program binaries for all devices associated with program, written sequentially in the target ByteBuffer. If thetarget
parameter is null, a new ByteBuffer will be allocated. If not, the target ByteBuffer must be big enough to hold the program binaries, as returned by CL_PROGRAM_BINARY_SIZES.- Parameters:
target
- the target ByteBuffer array.- Returns:
- the array of devices
-
getInfoBinaries
Returns the program binaries for all devices associated with program, as a ByteBuffer array. If thetarget
parameter is null, a new ByteBuffer array will be allocated. If not, the target ByteBuffers must be big enough to hold the program binaries, as returned by CL_PROGRAM_BINARY_SIZES.- Parameters:
target
- the target ByteBuffer array.- Returns:
- the array of devices
-
getBuildInfoString
Returns the String value of the specified parameter.- Parameters:
param_name
- the parameter- Returns:
- the parameter value
-
getBuildInfoInt
Returns the integer value of the specified parameter.- Parameters:
param_name
- the parameter- Returns:
- the parameter value
-
getParent
-
getReferenceCount
public final int getReferenceCount() -
isValid
public final boolean isValid()Description copied from class:PointerWrapperAbstract
Returns 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:
isValid
in classPointerWrapperAbstract
- Returns:
- true if the pointer is valid
-