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-12.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-12.cfg')
-rw-r--r-- | make/config/cl-impl-12.cfg | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/make/config/cl-impl-12.cfg b/make/config/cl-impl-12.cfg index 01b9ea28..2f8e8dd1 100644 --- a/make/config/cl-impl-12.cfg +++ b/make/config/cl-impl-12.cfg @@ -7,15 +7,22 @@ Style ImplOnly Import com.jogamp.opencl.llb.gl.CLGL Import java.security.AccessController Import java.security.PrivilegedAction - -ClassJavadoc CLAbstractImpl12 /** -ClassJavadoc CLAbstractImpl12 * Java bindings to OpenCL, the Open Computing Language (generated). -ClassJavadoc CLAbstractImpl12 * @author Michael Bien, GlueGen, et al. -ClassJavadoc CLAbstractImpl12 */ - -ImplJavaClass CLAbstractImpl12 -AccessControl CLAbstractImpl12 PUBLIC_ABSTRACT -Implements CLAbstractImpl12 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 CLImpl12 /** +ClassJavadoc CLImpl12 * Java bindings to OpenCL, the Open Computing Language (generated). +ClassJavadoc CLImpl12 * @author Michael Bien, GlueGen, et al. +ClassJavadoc CLImpl12 */ + +ImplJavaClass CLImpl12 +AccessControl CLImpl12 PUBLIC +Implements CLImpl12 CLGL LocalProcAddressCallingConvention __ALL__ CL_API_CALL @@ -99,7 +106,9 @@ ManuallyImplement clEnqueueMapImage ForceProcAddressGen clEnqueueMapImage #include custom code -IncludeAs CustomJavaCode CLAbstractImpl12 clImplCustomCode12.java -ManualStaticInitCall CLAbstractImpl12 +IncludeAs CustomJavaCode CLImpl12 clImplCustomCode12.java +IncludeAs CustomJavaCode CLImpl12 clImplCustomCode.java +ManualStaticInitCall CLImpl12 +IncludeAs CustomCCode clImplCustomCode.c IncludeAs CustomCCode clImplCustomCode12.c |