diff options
author | Michael Bien <[email protected]> | 2010-02-19 01:02:42 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-02-19 01:02:42 +0100 |
commit | 9542b173b10d2bb0eb492230025bdede638631b0 (patch) | |
tree | a18dd36b26cb02a59ca466ac46dd435302071874 /src/com/mbien/opencl/CLGLContext.java | |
parent | 074e8a18e8f5f77168bde267ab87f3cf285f82be (diff) |
fixed CLImage2d methods, range/offset buffers have now correct values for the third element.
javadoc fixes and two more factory methods for CLGLBuffer.
Diffstat (limited to 'src/com/mbien/opencl/CLGLContext.java')
-rw-r--r-- | src/com/mbien/opencl/CLGLContext.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/mbien/opencl/CLGLContext.java b/src/com/mbien/opencl/CLGLContext.java index a96891c0..6fb0251f 100644 --- a/src/com/mbien/opencl/CLGLContext.java +++ b/src/com/mbien/opencl/CLGLContext.java @@ -143,6 +143,14 @@ public final class CLGLContext extends CLContext { } + public final CLGLBuffer<?> createFromGLBuffer(int glBuffer, Mem... flags) { + return createFromGLBuffer(null, glBuffer, Mem.flagsToInt(flags)); + } + + public final CLGLBuffer<?> createFromGLBuffer(int glBuffer, int flags) { + return createFromGLBuffer(null, glBuffer, flags); + } + public final <B extends Buffer> CLGLBuffer<B> createFromGLBuffer(B directBuffer, int glBuffer, Mem... flags) { return createFromGLBuffer(directBuffer, glBuffer, Mem.flagsToInt(flags)); } |