diff options
author | Michael Bien <[email protected]> | 2011-05-25 00:21:37 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2011-05-25 00:21:37 +0200 |
commit | 10c82cf73a2c2e4a944d10294b7d51f4575e0f6e (patch) | |
tree | dbdcda2a5a663cce2d3e4b58af06385bdef6d4d5 /src/com/jogamp/opencl/spi/CLInfoAccessor.java | |
parent | a0b006f60512e30e362fbe8a15d4b40cc72609e2 (diff) |
CLAccessor SPI - initial refactorings.
Diffstat (limited to 'src/com/jogamp/opencl/spi/CLInfoAccessor.java')
-rw-r--r-- | src/com/jogamp/opencl/spi/CLInfoAccessor.java | 25 |
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); + +} |