public class JoclProgram extends Program
OpenCLObject.ObjectReleaserreleaser| Constructor and Description | 
|---|
| JoclProgram(long program,
           JoclContext context) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | build(java.lang.String args,
     Device... devices)Builds this program with the specified argument string on the specified
 devices. | 
| Kernel[] | createAllKernels()Creates all available kernels in this program. | 
| Kernel | createKernel(java.lang.String name)Creates the kernel with the specified name. | 
| java.nio.ByteBuffer | getBinary(Device d)Queries a compiled binary representation of this program for a particular
 device. | 
finalize, getReleaser, releasepublic JoclProgram(long program,
                   JoclContext context)
public void build(java.lang.String args,
                  Device... devices)
           throws KernelCompilationException
ProgramContext.getDevices().
 If null is passed, the program is built on all available devices.build in class Programargs - the compilation argumentsdevices - a list of devices on which the program is build.KernelCompilationException - if the compilation failsProgram.build()public Kernel createKernel(java.lang.String name)
ProgramcreateKernel in class Programname - the name of the kernel as defined in the source codepublic Kernel[] createAllKernels()
ProgramKernel.getName().createAllKernels in class Programpublic java.nio.ByteBuffer getBinary(Device d)
ProgramgetBinary in class Programd - the device from which the binaries are takenContext.createProgramFromBinary(java.nio.ByteBuffer, com.jme3.opencl.Device)