aboutsummaryrefslogtreecommitdiffstats
path: root/resources/cl-impl.cfg
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-06-08 01:39:34 +0200
committerMichael Bien <[email protected]>2010-06-08 01:39:34 +0200
commit86abb5fecf48c7df8dcad653b5ec03f349558050 (patch)
tree96fafcec4f73c10bb8ef40d19adfa74ee6f37d5e /resources/cl-impl.cfg
parente9b236379f4da3a90c0b42734258e4ecb0a8f762 (diff)
Refactored LLB into two impl layers to reduce custom code injection significantly.
- CLAbstractImpl is automatically generated by gluegen (former CLImpl) - CLImply is handwritten and extends CLAbstractImpl to handle special cases
Diffstat (limited to 'resources/cl-impl.cfg')
-rw-r--r--resources/cl-impl.cfg17
1 files changed, 9 insertions, 8 deletions
diff --git a/resources/cl-impl.cfg b/resources/cl-impl.cfg
index ecb3fe00..9a9526f1 100644
--- a/resources/cl-impl.cfg
+++ b/resources/cl-impl.cfg
@@ -6,13 +6,14 @@ Style ImplOnly
Import com.jogamp.opencl.*
Import com.jogamp.opencl.gl.CLGLI
-ClassJavadoc CLImpl /**
-ClassJavadoc CLImpl * Java bindings to OpenCL, the Open Computing Language.
-ClassJavadoc CLImpl * @author Michael Bien
-ClassJavadoc CLImpl */
+ClassJavadoc CLAbstractImpl /**
+ClassJavadoc CLAbstractImpl * Java bindings to OpenCL, the Open Computing Language (generated).
+ClassJavadoc CLAbstractImpl * @author Michael Bien
+ClassJavadoc CLAbstractImpl */
-ImplJavaClass CLImpl
-Implements CLImpl CLGLI
+ImplJavaClass CLAbstractImpl
+AccessControl CLAbstractImpl PUBLIC_ABSTRACT
+Implements CLAbstractImpl CLGLI
EmitProcAddressTable true
ProcAddressTableClassName CLProcAddressTable
@@ -36,7 +37,7 @@ ForceProcAddressGen clIcdGetPlatformIDsKHR
Unignore clGetExtensionFunctionAddress
RenameJavaMethod clGetExtensionFunctionAddress clGetExtensionFunctionAddressImpl
-AccessControl clGetExtensionFunctionAddressImpl PRIVATE
+AccessControl clGetExtensionFunctionAddressImpl PROTECTED
ArgumentIsString clGetExtensionFunctionAddressImpl 0
#append to generated c files
@@ -58,7 +59,7 @@ ReturnValueCapacity clEnqueueMapBuffer {5}
ManuallyImplement clEnqueueMapImage
#include custom code
-IncludeAs CustomJavaCode CLImpl clImplCustomCode.java
+IncludeAs CustomJavaCode CLAbstractImpl clImplCustomCode.java
IncludeAs CustomCCode clImplCustomCode.c
#JavaEpilogue clCreateKernelsInProgram if(kernels!=null && CPU.is32Bit() && kernels.lenght > 1) { convert32To64(kernels); }