diff options
author | Michael Bien <[email protected]> | 2011-07-18 19:12:52 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2011-07-18 19:12:52 +0200 |
commit | 8c8c3d70db0c1ee78a9598e695a54441c49384e5 (patch) | |
tree | 8d174435e62ee29d105f919de23bd63d151340ab /src | |
parent | 140b7b5020f3b85e43fb0203ca041c176d9e730b (diff) |
renamed setNullArg to setArgSize, since its currently the sole usecase for null arguments.
Diffstat (limited to 'src')
-rw-r--r-- | src/com/jogamp/opencl/CLKernel.java | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/com/jogamp/opencl/CLKernel.java b/src/com/jogamp/opencl/CLKernel.java index 4d06d8b9..0f7df9b3 100644 --- a/src/com/jogamp/opencl/CLKernel.java +++ b/src/com/jogamp/opencl/CLKernel.java @@ -247,8 +247,11 @@ public class CLKernel extends CLObjectResource implements Cloneable { return this; } - public CLKernel putNullArg(int size) { - setNullArg(argIndex, size); + /** + * Sets the size of a <i>local</i> kernel argument. + */ + public CLKernel putArgSize(int size) { + setArgSize(argIndex, size); argIndex++; return this; } @@ -419,7 +422,10 @@ public class CLKernel extends CLObjectResource implements Cloneable { return this; } - public CLKernel setNullArg(int argumentIndex, int size) { + /** + * Sets the size of a <i>local</i> kernel argument at the specified index. + */ + public CLKernel setArgSize(int argumentIndex, int size) { setArgument(argumentIndex, size, null); return this; } |