|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.lwjgl.PointerWrapperAbstract
org.lwjgl.opencl.CLProgram
public final class CLProgram
This class is a wrapper around a cl_program pointer.
Field Summary |
---|
Fields inherited from class org.lwjgl.PointerWrapperAbstract |
---|
pointer |
Method Summary | |
---|---|
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. |
Methods inherited from class org.lwjgl.PointerWrapperAbstract |
---|
checkValid, equals, getPointer, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public CLKernel getCLKernel(long id)
id
- the kernel id
public CLKernel[] createKernelsInProgram()
public java.lang.String getInfoString(int param_name)
param_name
- the parameter
public int getInfoInt(int param_name)
param_name
- the parameter
public long[] getInfoSizeArray(int param_name)
param_name
- the parameter
public 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 parameter
public int getBuildInfoInt(CLDevice device, int param_name)
param_name
- the parameter
public P getParent()
public final int getReferenceCount()
public final boolean isValid()
PointerWrapperAbstract
isValid
in class PointerWrapperAbstract
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |