PointerWrapper
public final class CLProgram extends PointerWrapperAbstract
pointer
Modifier and Type | Method | 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.
|
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.
|
ByteBuffer |
getInfoBinaries(ByteBuffer target) |
Returns the program binaries for all devices associated with program,
written sequentially in the target ByteBuffer.
|
ByteBuffer[] |
getInfoBinaries(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.
|
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.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
checkValid, equals, getPointer, hashCode, toString
public CLKernel getCLKernel(long id)
id
- the kernel idpublic CLKernel[] createKernelsInProgram()
public 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 ByteBuffer getInfoBinaries(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 ByteBuffer[] getInfoBinaries(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 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.