summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/jogamp/opencl')
-rw-r--r--src/com/jogamp/opencl/CLProgram.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/com/jogamp/opencl/CLProgram.java b/src/com/jogamp/opencl/CLProgram.java
index ce844bf8..3fcee4a7 100644
--- a/src/com/jogamp/opencl/CLProgram.java
+++ b/src/com/jogamp/opencl/CLProgram.java
@@ -422,6 +422,19 @@ public class CLProgram extends CLObjectResource {
}
/**
+ * Creates a kernel with the specified kernel name and initializes it with the given arguments.
+ * @see CLKernel#setArgs(java.lang.Object[])
+ */
+ public CLKernel createCLKernel(String kernelName, Object... args) {
+
+ if(released) {
+ return null;
+ }
+
+ return createCLKernel(kernelName).setArgs(args);
+ }
+
+ /**
* Creates all kernels of this program and stores them a Map with the kernel name as key.
*/
public Map<String, CLKernel> createCLKernels() {