diff options
author | Michael Bien <[email protected]> | 2010-03-27 02:49:28 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-03-27 02:49:28 +0100 |
commit | 043f1cf8bcdfc8f8faa853c92afc064c468dc2a8 (patch) | |
tree | a4d2d6d16ab105293d104d63db72b5282502942e /resources | |
parent | 7254e22512ab61f3e2ed3fcf3622ef55b9af0aa7 (diff) |
refactoring due to gluegen changes.
- renamed com.sun.gluegen.runtime -> com.jogamp.gluegen.runtime.
Diffstat (limited to 'resources')
-rw-r--r-- | resources/cl-if.cfg | 6 | ||||
-rw-r--r-- | resources/clImplCustomCode.c | 2 | ||||
-rw-r--r-- | resources/clImplCustomCode.java | 30 |
3 files changed, 19 insertions, 19 deletions
diff --git a/resources/cl-if.cfg b/resources/cl-if.cfg index feb96399..47761b38 100644 --- a/resources/cl-if.cfg +++ b/resources/cl-if.cfg @@ -20,17 +20,17 @@ Ignore CL_GL_.*|cl.*GL.* Ignore clCreateContext CustomJavaCode CL CustomJavaCode CL /** Interface to C language function: <br> <code> cl_context {@native clCreateContext}(intptr_t * , uint32_t, cl_device_id * , void (*pfn_notify)(const char *, const void *, size_t, void *), void *, int32_t * ); </code> */ -CustomJavaCode CL public long clCreateContext(com.sun.gluegen.runtime.PointerBuffer properties, com.sun.gluegen.runtime.PointerBuffer devices, CreateContextCallback pfn_notify, Object userData, IntBuffer errcode_ret); +CustomJavaCode CL public long clCreateContext(com.jogamp.gluegen.runtime.PointerBuffer properties, com.jogamp.gluegen.runtime.PointerBuffer devices, CreateContextCallback pfn_notify, Object userData, IntBuffer errcode_ret); Ignore clCreateContextFromType CustomJavaCode CL CustomJavaCode CL /** Interface to C language function: <br> <code> cl_context {@native clCreateContextFromType}(cl_context_properties *properties, cl_device_type device_type, void (*pfn_notify)(const char *errinfo, const void *private_info, size_t cb, void *user_data), void *user_data, cl_int *errcode_ret) ; </code> */ -CustomJavaCode CL public long clCreateContextFromType(com.sun.gluegen.runtime.PointerBuffer properties, long device_type, CreateContextCallback pfn_notify, Object userData, IntBuffer errcode_ret); +CustomJavaCode CL public long clCreateContextFromType(com.jogamp.gluegen.runtime.PointerBuffer properties, long device_type, CreateContextCallback pfn_notify, Object userData, IntBuffer errcode_ret); Ignore clBuildProgram CustomJavaCode CL CustomJavaCode CL /** Interface to C language function: <br> <code> int32_t {@native clBuildProgram}(cl_program, uint32_t, cl_device_id * , const char * , void (*pfn_notify)(cl_program, void *user_data), void * ); </code> */ -CustomJavaCode CL public int clBuildProgram(long program, int deviceCount, com.sun.gluegen.runtime.PointerBuffer devices, String options, BuildProgramCallback cb, Object userData); +CustomJavaCode CL public int clBuildProgram(long program, int deviceCount, com.jogamp.gluegen.runtime.PointerBuffer devices, String options, BuildProgramCallback cb, Object userData); Ignore clEnqueueNativeKernel #TODO.. diff --git a/resources/clImplCustomCode.c b/resources/clImplCustomCode.c index 05a29552..747e2c85 100644 --- a/resources/clImplCustomCode.c +++ b/resources/clImplCustomCode.c @@ -125,7 +125,7 @@ Java_com_mbien_opencl_impl_CLImpl_clBuildProgram0(JNIEnv *env, jobject _unused, /* Java->C glue code: * Java package: com.mbien.opencl.impl.CLImpl - * Java method: java.nio.ByteBuffer clEnqueueMapImage(long command_queue, long image, int blocking_map, long map_flags, com.sun.gluegen.runtime.PointerBuffer origin, com.sun.gluegen.runtime.PointerBuffer range, com.sun.gluegen.runtime.PointerBuffer image_row_pitch, com.sun.gluegen.runtime.PointerBuffer image_slice_pitch, int num_events_in_wait_list, com.sun.gluegen.runtime.PointerBuffer event_wait_list, com.sun.gluegen.runtime.PointerBuffer event, java.nio.IntBuffer errcode_ret) + * Java method: java.nio.ByteBuffer clEnqueueMapImage(long command_queue, long image, int blocking_map, long map_flags, com.jogamp.gluegen.runtime.PointerBuffer origin, com.jogamp.gluegen.runtime.PointerBuffer range, com.jogamp.gluegen.runtime.PointerBuffer image_row_pitch, com.jogamp.gluegen.runtime.PointerBuffer image_slice_pitch, int num_events_in_wait_list, com.jogamp.gluegen.runtime.PointerBuffer event_wait_list, com.jogamp.gluegen.runtime.PointerBuffer event, java.nio.IntBuffer errcode_ret) * C function: void * 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); */ JNIEXPORT jobject JNICALL diff --git a/resources/clImplCustomCode.java b/resources/clImplCustomCode.java index a9576444..c4d9c845 100644 --- a/resources/clImplCustomCode.java +++ b/resources/clImplCustomCode.java @@ -65,18 +65,18 @@ /** Interface to C language function: <br> <code> 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); </code> - @param origin a direct {@link com.sun.gluegen.runtime.PointerBuffer} - @param range a direct {@link com.sun.gluegen.runtime.PointerBuffer} - @param image_row_pitch a direct {@link com.sun.gluegen.runtime.PointerBuffer} - @param image_slice_pitch a direct {@link com.sun.gluegen.runtime.PointerBuffer} - @param event_wait_list a direct {@link com.sun.gluegen.runtime.PointerBuffer} - @param event a direct {@link com.sun.gluegen.runtime.PointerBuffer} + @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 errcode_ret a direct {@link java.nio.IntBuffer} */ public java.nio.ByteBuffer clEnqueueMapImage(long command_queue, long image, int blocking_map, long map_flags, - com.sun.gluegen.runtime.PointerBuffer origin, com.sun.gluegen.runtime.PointerBuffer range, - com.sun.gluegen.runtime.PointerBuffer image_row_pitch, com.sun.gluegen.runtime.PointerBuffer image_slice_pitch, + com.jogamp.gluegen.runtime.PointerBuffer origin, com.jogamp.gluegen.runtime.PointerBuffer range, + com.jogamp.gluegen.runtime.PointerBuffer image_row_pitch, com.jogamp.gluegen.runtime.PointerBuffer image_slice_pitch, int num_events_in_wait_list, - com.sun.gluegen.runtime.PointerBuffer event_wait_list, com.sun.gluegen.runtime.PointerBuffer event, java.nio.IntBuffer errcode_ret) { + com.jogamp.gluegen.runtime.PointerBuffer event_wait_list, com.jogamp.gluegen.runtime.PointerBuffer event, java.nio.IntBuffer errcode_ret) { if (!BufferFactory.isDirect(origin)) throw new CLException("Argument \"origin\" was not a direct buffer"); @@ -108,12 +108,12 @@ } /** Entry point to C language function: <code> 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); </code> - @param origin a direct {@link com.sun.gluegen.runtime.PointerBuffer} - @param range a direct {@link com.sun.gluegen.runtime.PointerBuffer} - @param image_row_pitch a direct {@link com.sun.gluegen.runtime.PointerBuffer} - @param image_slice_pitch a direct {@link com.sun.gluegen.runtime.PointerBuffer} - @param event_wait_list a direct {@link com.sun.gluegen.runtime.PointerBuffer} - @param event a direct {@link com.sun.gluegen.runtime.PointerBuffer} + @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 errcode_ret a direct {@link java.nio.IntBuffer} */ private native java.nio.ByteBuffer clEnqueueMapImage0(long command_queue, long image, int blocking_map, long map_flags, Object origin, int origin_byte_offset, Object range, int range_byte_offset, Object image_row_pitch, int image_row_pitch_byte_offset, Object image_slice_pitch, int image_slice_pitch_byte_offset, int num_events_in_wait_list, Object event_wait_list, int event_wait_list_byte_offset, Object event, int event_byte_offset, Object errcode_ret, int errcode_ret_byte_offset); |