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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Builds 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.CLProgram
Methods 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:Program
Builds 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()
. Ifnull
is passed, the program is built on all available devices.- Specified by:
build
in 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:Program
Creates the kernel with the specified name.- Specified by:
createKernel
in classProgram
- Parameters:
name
- the name of the kernel as defined in the source code- Returns:
- the kernel object
-
createAllKernels
Description copied from class:Program
Creates all available kernels in this program. The names of the kernels can then be queried byKernel.getName()
.- Specified by:
createAllKernels
in classProgram
- Returns:
- an array of all kernels
-
getBinary
Description copied from class:Program
Queries 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.
-