summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/spi/CLInfoAccessor.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-06-28 14:13:22 +0200
committerSven Gothel <[email protected]>2011-06-28 14:13:22 +0200
commitda0378be055d5c304b0a0b5e1b5f3ca66122ebf8 (patch)
tree26ca2e70da90e0c43c30a51d8d0cbe6c9ca2809f /src/com/jogamp/opencl/spi/CLInfoAccessor.java
parent368f062ec9d6bbb89129739adb59cf042dd0bf78 (diff)
parent08a479b22d4ba9da9ee79fc938ac4de7fb83dc5a (diff)
Fix last merge of mbien/master
Diffstat (limited to 'src/com/jogamp/opencl/spi/CLInfoAccessor.java')
-rw-r--r--src/com/jogamp/opencl/spi/CLInfoAccessor.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/com/jogamp/opencl/spi/CLInfoAccessor.java b/src/com/jogamp/opencl/spi/CLInfoAccessor.java
new file mode 100644
index 00000000..0ff0aeac
--- /dev/null
+++ b/src/com/jogamp/opencl/spi/CLInfoAccessor.java
@@ -0,0 +1,25 @@
+/*
+ * Created on Thursday, May 19 2011 16:43
+ */
+package com.jogamp.opencl.spi;
+
+/**
+ * Internal utility for common OpenCL clGetFooInfo calls.
+ * Provides common accessors to CL objects.
+ * @author Michael Bien
+ */
+public interface CLInfoAccessor {
+
+ int[] getInts(int key, int n);
+
+ /**
+ * Returns the long value for the given key.
+ */
+ long getLong(int key);
+
+ /**
+ * Returns the String value for the given key.
+ */
+ String getString(int key);
+
+}