Include cl-common.cfg Style ImplOnly #imports for all generated java files Import com.jogamp.opencl.* Import com.jogamp.opencl.gl.CLGLI ClassJavadoc CLAbstractImpl /** ClassJavadoc CLAbstractImpl * Java bindings to OpenCL, the Open Computing Language (generated). ClassJavadoc CLAbstractImpl * @author Michael Bien ClassJavadoc CLAbstractImpl */ ImplJavaClass CLAbstractImpl AccessControl CLAbstractImpl PUBLIC_ABSTRACT Implements CLAbstractImpl CLGLI EmitProcAddressTable true ProcAddressTableClassName CLProcAddressTable GetProcAddressTableExpr addressTable ProcAddressNameExpr $UpperCase(arg) #dynamic binding for OpenGL specific functions... ForceProcAddressGen clGetGLContextInfoKHR ForceProcAddressGen clCreateFromGLBuffer ForceProcAddressGen clCreateFromGLRenderbuffer ForceProcAddressGen clCreateFromGLTexture2D ForceProcAddressGen clCreateFromGLTexture3D ForceProcAddressGen clEnqueueAcquireGLObjects ForceProcAddressGen clEnqueueReleaseGLObjects ForceProcAddressGen clGetGLObjectInfo ForceProcAddressGen clGetGLTextureInfo ForceProcAddressGen clCreateEventFromGLsyncKHR ForceProcAddressGen clIcdGetPlatformIDsKHR ForceProcAddressGen clCreateSubBuffer ForceProcAddressGen clCreateSubDevicesEXT ForceProcAddressGen clCreateUserEvent ForceProcAddressGen clEnqueueCopyBufferRect ForceProcAddressGen clEnqueueReadBufferRect ForceProcAddressGen clEnqueueWriteBufferRect ForceProcAddressGen clReleaseDeviceEXT ForceProcAddressGen clRetainDeviceEXT ForceProcAddressGen clSetUserEventStatus #...or force all #ForceProcAddressGen __ALL__ Unignore clGetExtensionFunctionAddress RenameJavaMethod clGetExtensionFunctionAddress clGetExtensionFunctionAddressImpl AccessControl clGetExtensionFunctionAddressImpl PROTECTED ArgumentIsString clGetExtensionFunctionAddressImpl 0 #append to generated c files CustomCCode #include CustomCCode #include CustomCCode #include CustomCCode #include # implement manually via custom code Ignore clCreateContext Ignore clCreateContextFromType Ignore clBuildProgram Ignore clEnqueueNativeKernel Ignore clReleaseContext #take buffer capacity from input param 5 ReturnValueCapacity clEnqueueMapBuffer {5} #this one is more complicated, we have to calculate the capacity with custom code ManuallyImplement clEnqueueMapImage #include custom code IncludeAs CustomJavaCode CLAbstractImpl clImplCustomCode.java IncludeAs CustomCCode clImplCustomCode.c #JavaEpilogue clCreateKernelsInProgram if(kernels!=null && CPU.is32Bit() && kernels.lenght > 1) { convert32To64(kernels); }