diff options
author | Michael Bien <[email protected]> | 2011-05-26 02:01:18 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2011-05-26 02:01:18 +0200 |
commit | 08a479b22d4ba9da9ee79fc938ac4de7fb83dc5a (patch) | |
tree | 145abdd2ebc083e7167ccceb3d13a398c57a1dd0 /src/com/jogamp/opencl/spi | |
parent | cb859fd580d3e1f5afb3c0f77cee0a5e82a394bb (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.java | 18 |
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); + +} |