summaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/CLContext.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-03-16 22:55:32 +0100
committerMichael Bien <[email protected]>2010-03-16 22:55:32 +0100
commit36a289538cdb9373d8eb7700e616f019231ab591 (patch)
tree6310f16df3195b3d7553dde34ef52bca84270461 /src/com/mbien/opencl/CLContext.java
parent919d8e9f992c07ab18ddd6d192d6747e8d7aa40b (diff)
get(GL)Context() and getCL() getters.
fix in isGLMemorySharingSupported() on mac. javadoc fixes.
Diffstat (limited to 'src/com/mbien/opencl/CLContext.java')
-rw-r--r--src/com/mbien/opencl/CLContext.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/mbien/opencl/CLContext.java b/src/com/mbien/opencl/CLContext.java
index 2698a934..bac542c0 100644
--- a/src/com/mbien/opencl/CLContext.java
+++ b/src/com/mbien/opencl/CLContext.java
@@ -447,6 +447,13 @@ public class CLContext extends CLObject implements CLResource {
return devices;
}
+ /**
+ * Return the low level OpenCL interface.
+ */
+ public CL getCL() {
+ return cl;
+ }
+
CLDevice getDevice(long dID) {
CLDevice[] deviceArray = getDevices();
for (int i = 0; i < deviceArray.length; i++) {