diff options
Diffstat (limited to 'src/com/mbien/opencl/CLKernel.java')
-rw-r--r-- | src/com/mbien/opencl/CLKernel.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/mbien/opencl/CLKernel.java b/src/com/mbien/opencl/CLKernel.java index a50478aa..696007ba 100644 --- a/src/com/mbien/opencl/CLKernel.java +++ b/src/com/mbien/opencl/CLKernel.java @@ -82,6 +82,11 @@ public class CLKernel extends CLObject implements CLResource, Cloneable { return this; } + public CLKernel putNullArg(int size) { + setNullArg(argIndex++, size); + return this; + } + public CLKernel putArgs(CLMemory<?>... values) { setArgs(argIndex, values); argIndex += values.length; @@ -126,6 +131,11 @@ public class CLKernel extends CLObject implements CLResource, Cloneable { return this; } + public CLKernel setNullArg(int argumentIndex, int size) { + setArgument(argumentIndex, size, null); + return this; + } + public CLKernel setArgs(CLMemory<?>... values) { setArgs(0, values); return this; |