Package com.jme3.opencl.lwjgl
Class LwjglProgram
java.lang.Object
com.jme3.opencl.AbstractOpenCLObject
com.jme3.opencl.Program
com.jme3.opencl.lwjgl.LwjglProgram
- All Implemented Interfaces:
OpenCLObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jme3.opencl.OpenCLObject
OpenCLObject.ObjectReleaser -
Field Summary
Fields inherited from class com.jme3.opencl.AbstractOpenCLObject
releaser -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidBuilds this program with the specified argument string on the specified devices.Kernel[]Creates all available kernels in this program.createKernel(String name) Creates the kernel with the specified name.Queries a compiled binary representation of this program for a particular device.org.lwjgl.opencl.CLProgramMethods inherited from class com.jme3.opencl.AbstractOpenCLObject
finalize, getReleaser, release
-
Constructor Details
-
LwjglProgram
-
-
Method Details
-
getProgram
public org.lwjgl.opencl.CLProgram getProgram() -
build
Description copied from class:ProgramBuilds this program with the specified argument string on the specified devices. Please see the official OpenCL specification for a definition of all supported arguments. The list of devices specify on which device the compiled program can then be executed. It must be a subset ofContext.getDevices(). Ifnullis passed, the program is built on all available devices.- Specified by:
buildin classProgram- Parameters:
args- the compilation argumentsdevices- a list of devices on which the program is build.- Throws:
KernelCompilationException- if the compilation fails- See Also:
-
createKernel
Description copied from class:ProgramCreates the kernel with the specified name.- Specified by:
createKernelin classProgram- Parameters:
name- the name of the kernel as defined in the source code- Returns:
- the kernel object
-
createAllKernels
Description copied from class:ProgramCreates all available kernels in this program. The names of the kernels can then be queried byKernel.getName().- Specified by:
createAllKernelsin classProgram- Returns:
- an array of all kernels
-
getBinary
Description copied from class:ProgramQueries a compiled binary representation of this program for a particular device. This binary can then be used e.g. in the next application launch to create the program from the binaries and not from the sources. This saves time.
-