diff options
author | Wade Walker <[email protected]> | 2015-09-19 15:20:23 -0500 |
---|---|---|
committer | Wade Walker <[email protected]> | 2015-11-08 14:05:29 -0600 |
commit | 4638f4b3fdf4c946bda0b290a83652e4db00edea (patch) | |
tree | 7d027b893fbf1d55d578e2f156186075a092810c /make/config/cl-impl-11.cfg | |
parent | 9a90181ed1fb596275fee9ebca0f3d1093722ca9 (diff) |
Factor out common custom C and Java code to reduce duplication
Consolidated C custom code so common functions are only defined once in
the 1.1 version, then are called from the 1.2 and 2.0 version. Pulled
common code in CLImpl up into the autogenerated implementation class and
removed the hand-written implementation (since it was left empty).
Factored custom Java code out so there was as little duplication as
possible across the three CLImpl versions, with common code for all
three versions in clImplCustomCode.java.
Diffstat (limited to 'make/config/cl-impl-11.cfg')
-rw-r--r-- | make/config/cl-impl-11.cfg | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/make/config/cl-impl-11.cfg b/make/config/cl-impl-11.cfg index 9a49ea64..34d48424 100644 --- a/make/config/cl-impl-11.cfg +++ b/make/config/cl-impl-11.cfg @@ -7,15 +7,22 @@ Style ImplOnly Import com.jogamp.opencl.llb.gl.CLGL Import java.security.AccessController Import java.security.PrivilegedAction - -ClassJavadoc CLAbstractImpl11 /** -ClassJavadoc CLAbstractImpl11 * Java bindings to OpenCL, the Open Computing Language (generated). -ClassJavadoc CLAbstractImpl11 * @author Michael Bien, GlueGen, et al. -ClassJavadoc CLAbstractImpl11 */ - -ImplJavaClass CLAbstractImpl11 -AccessControl CLAbstractImpl11 PUBLIC_ABSTRACT -Implements CLAbstractImpl11 CLGL +Import com.jogamp.common.nio.PointerBuffer +Import com.jogamp.common.util.LongLongHashMap +Import com.jogamp.opencl.CLErrorHandler +Import com.jogamp.opencl.CLException +Import java.nio.ByteBuffer +Import java.nio.IntBuffer +Import com.jogamp.common.nio.Buffers + +ClassJavadoc CLImpl11 /** +ClassJavadoc CLImpl11 * Java bindings to OpenCL, the Open Computing Language (generated). +ClassJavadoc CLImpl11 * @author Michael Bien, GlueGen, et al. +ClassJavadoc CLImpl11 */ + +ImplJavaClass CLImpl11 +AccessControl CLImpl11 PUBLIC +Implements CLImpl11 CLGL LocalProcAddressCallingConvention __ALL__ CL_API_CALL @@ -93,7 +100,8 @@ ManuallyImplement clEnqueueMapImage ForceProcAddressGen clEnqueueMapImage #include custom code -IncludeAs CustomJavaCode CLAbstractImpl11 clImplCustomCode11.java -ManualStaticInitCall CLAbstractImpl11 +IncludeAs CustomJavaCode CLImpl11 clImplCustomCode11.java +IncludeAs CustomJavaCode CLImpl11 clImplCustomCode.java +ManualStaticInitCall CLImpl11 IncludeAs CustomCCode clImplCustomCode11.c |