summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/spi
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2011-05-26 02:01:18 +0200
committerMichael Bien <[email protected]>2011-05-26 02:01:18 +0200
commit08a479b22d4ba9da9ee79fc938ac4de7fb83dc5a (patch)
tree145abdd2ebc083e7167ccceb3d13a398c57a1dd0 /src/com/jogamp/opencl/spi
parentcb859fd580d3e1f5afb3c0f77cee0a5e82a394bb (diff)
introduced CLAccessorFactory spi and threadlocal default impl for CLDevice and CLPlatform.
Diffstat (limited to 'src/com/jogamp/opencl/spi')
-rw-r--r--src/com/jogamp/opencl/spi/CLAccessorFactory.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/com/jogamp/opencl/spi/CLAccessorFactory.java b/src/com/jogamp/opencl/spi/CLAccessorFactory.java
new file mode 100644
index 00000000..6239bb37
--- /dev/null
+++ b/src/com/jogamp/opencl/spi/CLAccessorFactory.java
@@ -0,0 +1,18 @@
+/*
+ * Created on Wednesday, May 25 2011 00:53
+ */
+package com.jogamp.opencl.spi;
+
+import com.jogamp.opencl.CL;
+
+/**
+ * Implementations of this interface are factories responsible for creating CLAccessors.
+ * @author Michael Bien
+ */
+public interface CLAccessorFactory {
+
+ CLInfoAccessor createDeviceInfoAccessor(CL cl, long id);
+
+ CLPlatformInfoAccessor createPlatformInfoAccessor(CL cl, long id);
+
+}