From 3b3dc4591d3690f61b9488ed74e7c9248def1fd5 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Sun, 2 May 2010 22:55:02 +0200 Subject: CLBuildListener functionality for high level bindings. - uses low level BuildProgramCallback internally - updated tests, testing async builds --- resources/cl-if.cfg | 1 + resources/clImplCustomCode.c | 2 +- resources/clImplCustomCode.java | 12 ++++++------ 3 files changed, 8 insertions(+), 7 deletions(-) (limited to 'resources') diff --git a/resources/cl-if.cfg b/resources/cl-if.cfg index cbf2d9b8..d0413d97 100644 --- a/resources/cl-if.cfg +++ b/resources/cl-if.cfg @@ -6,6 +6,7 @@ Style InterfaceOnly Import java.nio.IntBuffer Import java.nio.LongBuffer Import com.jogamp.opencl.impl.CLImageFormatImpl +import com.jogamp.opencl.impl.BuildProgramCallback; ClassJavadoc CL /** ClassJavadoc CL * Java bindings to OpenCL, the Open Computing Language. diff --git a/resources/clImplCustomCode.c b/resources/clImplCustomCode.c index eb209157..b491eb7f 100644 --- a/resources/clImplCustomCode.c +++ b/resources/clImplCustomCode.c @@ -24,7 +24,7 @@ JNI_OnLoad(JavaVM * _jvm, void *reserved) { } // throws ClassNotFoundException (or other reflection stuff) - jclass buildCBClassID = (*env)->FindClass(env, "com/jogamp/opencl/BuildProgramCallback"); + jclass buildCBClassID = (*env)->FindClass(env, "com/jogamp/opencl/impl/BuildProgramCallback"); jclass errorHandlerClassID = (*env)->FindClass(env, "com/jogamp/opencl/CreateContextCallback"); // throws even more reflection Exceptions diff --git a/resources/clImplCustomCode.java b/resources/clImplCustomCode.java index b5b5ec61..f3daddf0 100644 --- a/resources/clImplCustomCode.java +++ b/resources/clImplCustomCode.java @@ -44,12 +44,12 @@ /** Interface to C language function:
void * {@native clEnqueueMapImage}(cl_command_queue command_queue, cl_mem image, uint32_t blocking_map, uint64_t map_flags, const size_t * , const size_t * , size_t * image_row_pitch, size_t * image_slice_pitch, uint32_t num_events_in_wait_list, cl_event * event_wait_list, cl_event * event, int32_t * errcode_ret); - @param origin a direct {@link com.jogamp.gluegen.runtime.PointerBuffer} - @param range a direct {@link com.jogamp.gluegen.runtime.PointerBuffer} - @param image_row_pitch a direct {@link com.jogamp.gluegen.runtime.PointerBuffer} - @param image_slice_pitch a direct {@link com.jogamp.gluegen.runtime.PointerBuffer} - @param event_wait_list a direct {@link com.jogamp.gluegen.runtime.PointerBuffer} - @param event a direct {@link com.jogamp.gluegen.runtime.PointerBuffer} + @param origin a direct {@link com.jogamp.common.nio.PointerBuffer} + @param range a direct {@link com.jogamp.common.nio.PointerBuffer} + @param image_row_pitch a direct {@link com.jogamp.common.nio.PointerBuffer} + @param image_slice_pitch a direct {@link com.jogamp.common.nio.PointerBuffer} + @param event_wait_list a direct {@link com.jogamp.common.nio.PointerBuffer} + @param event a direct {@link com.jogamp.common.nio.PointerBuffer} @param errcode_ret a direct {@link java.nio.IntBuffer} */ public java.nio.ByteBuffer clEnqueueMapImage(long command_queue, long image, int blocking_map, long map_flags, Int64Buffer origin, Int64Buffer range, -- cgit v1.2.3