aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/spi/CLInfoAccessor.java
diff options
context:
space:
mode:
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);
+
+}