summaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/CLGLContext.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/mbien/opencl/CLGLContext.java')
-rw-r--r--src/com/mbien/opencl/CLGLContext.java8
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));
}