public final class CLProgram extends PointerWrapperAbstract
pointer
Modifier and Type | Method and Description |
---|---|
CLKernel[] |
createKernelsInProgram()
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.
|
java.lang.String |
getBuildInfoString(CLDevice device,
int param_name)
Returns the String value of the specified parameter.
|
CLKernel |
getCLKernel(long id)
Returns a CLKernel associated with this program.
|
java.nio.ByteBuffer |
getInfoBinaries(java.nio.ByteBuffer target)
Returns the program binaries for all devices associated with program,
written sequentially in the target ByteBuffer.
|
java.nio.ByteBuffer[] |
getInfoBinaries(java.nio.ByteBuffer[] target)
Returns the program binaries for all devices associated with program,
as a ByteBuffer array.
|
CLDevice[] |
getInfoDevices()
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.
|
java.lang.String |
getInfoString(int param_name)
Returns the String value of the specified parameter.
|
P |
getParent() |
int |
getReferenceCount() |
boolean |
isValid()
Returns true if this object represents a valid pointer.
|
checkValid, equals, getPointer, hashCode, toString
public CLKernel getCLKernel(long id)
id
- the kernel idpublic CLKernel[] createKernelsInProgram()
public java.lang.String getInfoString(int param_name)
param_name
- the parameterpublic int getInfoInt(int param_name)
param_name
- the parameterpublic long[] getInfoSizeArray(int param_name)
param_name
- the parameterpublic CLDevice[] getInfoDevices()
public java.nio.ByteBuffer getInfoBinaries(java.nio.ByteBuffer target)
target
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.target
- the target ByteBuffer array.public java.nio.ByteBuffer[] getInfoBinaries(java.nio.ByteBuffer[] target)
target
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.target
- the target ByteBuffer array.public java.lang.String getBuildInfoString(CLDevice device, int param_name)
param_name
- the parameterpublic int getBuildInfoInt(CLDevice device, int param_name)
param_name
- the parameterpublic P getParent()
public final int getReferenceCount()
public final boolean isValid()
PointerWrapperAbstract
isValid
in class PointerWrapperAbstract
Copyright © 2002-2009 lwjgl.org. All Rights Reserved.