Uses of Class
org.jocl.cl_mem
-
Uses of cl_mem in org.jocl
Modifier and TypeFieldDescriptioncl_image_desc.bufferbuffer refers to a valid buffer memory object if image_type is CL_MEM_OBJECT_IMAGE1D_BUFFER.Modifier and TypeMethodDescriptionstatic cl_memCL.clCreateBuffer(cl_context context, long flags, long size, Pointer host_ptr, int[] errcode_ret) Creates a buffer object.private static cl_memCL.clCreateBufferNative(cl_context context, long flags, long size, Pointer host_ptr, int[] errcode_ret) static cl_memCL.clCreateFromGLBuffer(cl_context context, long flags, int bufobj, int[] errcode_ret) Creates an OpenCL buffer object from an OpenGL buffer object.private static cl_memCL.clCreateFromGLBufferNative(cl_context context, long flags, int bufobj, int[] errcode_ret) static cl_memCL.clCreateFromGLRenderbuffer(cl_context context, long flags, int renderbuffer, int[] errcode_ret) Creates an OpenCL 2D image object from an OpenGL renderbuffer object.private static cl_memCL.clCreateFromGLRenderbufferNative(cl_context context, long flags, int renderbuffer, int[] errcode_ret) static cl_memCL.clCreateFromGLTexture(cl_context context, long flags, int target, int miplevel, int texture, int[] errcode_ret) Creates an OpenCL image object, image array object, or image buffer object from an OpenGL texture object, texture array object, texture buffer object, or a single face of an OpenGL cubemap texture object.static cl_memCL.clCreateFromGLTexture2D(cl_context context, long flags, int target, int miplevel, int texture, int[] errcode_ret) Deprecated.private static cl_memCL.clCreateFromGLTexture2DNative(cl_context context, long flags, int target, int miplevel, int texture, int[] errcode_ret) static cl_memCL.clCreateFromGLTexture3D(cl_context context, long flags, int target, int miplevel, int texture, int[] errcode_ret) Deprecated.As of OpenCL 1.2 and replaced byCL.clCreateFromGLTexture(cl_context, long, int, int, int, int[])private static cl_memCL.clCreateFromGLTexture3DNative(cl_context context, long flags, int target, int miplevel, int texture, int[] errcode_ret) private static cl_memCL.clCreateFromGLTextureNative(cl_context context, long flags, int target, int miplevel, int texture, int[] errcode_ret) static cl_memCL.clCreateImage(cl_context context, long flags, cl_image_format image_format, cl_image_desc image_desc, Pointer host_ptr, int[] errcode_ret) Creates a 1D image, 1D image buffer, 1D image array, 2D image, 2D image array or 3D image object.static cl_memCL.clCreateImage2D(cl_context context, long flags, cl_image_format[] image_format, long image_width, long image_height, long image_row_pitch, Pointer host_ptr, int[] errcode_ret) Deprecated.As of OpenCL 1.2 and replaced byCL.clCreateImage(cl_context, long, cl_image_format, cl_image_desc, Pointer, int[])private static cl_memCL.clCreateImage2DNative(cl_context context, long flags, cl_image_format[] image_format, long image_width, long image_height, long image_row_pitch, Pointer host_ptr, int[] errcode_ret) static cl_memCL.clCreateImage3D(cl_context context, long flags, cl_image_format[] image_format, long image_width, long image_height, long image_depth, long image_row_pitch, long image_slice_pitch, Pointer host_ptr, int[] errcode_ret) Deprecated.As of OpenCL 1.2 and replaced byCL.clCreateImage(cl_context, long, cl_image_format, cl_image_desc, Pointer, int[])private static cl_memCL.clCreateImage3DNative(cl_context context, long flags, cl_image_format[] image_format, long image_width, long image_height, long image_depth, long image_row_pitch, long image_slice_pitch, Pointer host_ptr, int[] errcode_ret) private static cl_memCL.clCreateImageNative(cl_context context, long flags, cl_image_format image_format, cl_image_desc image_desc, Pointer host_ptr, int[] errcode_ret) static cl_memCL.clCreatePipe(cl_context context, long flags, int pipe_packet_size, int pipe_max_packets, cl_pipe_properties properties, int[] errcode_ret) Creates a pipe object.private static cl_memCL.clCreatePipeNative(cl_context context, long flags, int pipe_packet_size, int pipe_max_packets, cl_pipe_properties properties, int[] errcode_ret) static cl_memCL.clCreateSubBuffer(cl_mem buffer, long flags, int buffer_create_type, cl_buffer_region buffer_create_info, int[] errcode_ret) Creates a buffer object (referred to as a sub-buffer object) from an existing buffer object.static cl_memCL.clCreateSubBuffer(cl_mem buffer, long flags, int buffer_create_type, Pointer buffer_create_info, int[] errcode_ret) Deprecated.The buffer_create_info that has to be passed to this function is specific for the underlying architecture (32/64 bit).private static cl_memCL.clCreateSubBuffer2Native(cl_mem buffer, long flags, int buffer_create_type, cl_buffer_region buffer_create_info, int[] errcode_ret) private static cl_memCL.clCreateSubBufferNative(cl_mem buffer, long flags, int buffer_create_type, Pointer buffer_create_info, int[] errcode_ret) Modifier and TypeMethodDescriptionstatic cl_memCL.clCreateSubBuffer(cl_mem buffer, long flags, int buffer_create_type, cl_buffer_region buffer_create_info, int[] errcode_ret) Creates a buffer object (referred to as a sub-buffer object) from an existing buffer object.static cl_memCL.clCreateSubBuffer(cl_mem buffer, long flags, int buffer_create_type, Pointer buffer_create_info, int[] errcode_ret) Deprecated.The buffer_create_info that has to be passed to this function is specific for the underlying architecture (32/64 bit).private static cl_memCL.clCreateSubBuffer2Native(cl_mem buffer, long flags, int buffer_create_type, cl_buffer_region buffer_create_info, int[] errcode_ret) private static cl_memCL.clCreateSubBufferNative(cl_mem buffer, long flags, int buffer_create_type, Pointer buffer_create_info, int[] errcode_ret) static intCL.clEnqueueAcquireGLObjects(cl_command_queue command_queue, int num_objects, cl_mem[] mem_objects, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) Acquire OpenCL memory objects that have been created from OpenGL objects.private static intCL.clEnqueueAcquireGLObjectsNative(cl_command_queue command_queue, int num_objects, cl_mem[] mem_objects, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) static intCL.clEnqueueCopyBuffer(cl_command_queue command_queue, cl_mem src_buffer, cl_mem dst_buffer, long src_offset, long dst_offset, long cb, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) Enqueues a command to copy from one buffer object to another.private static intCL.clEnqueueCopyBufferNative(cl_command_queue command_queue, cl_mem src_buffer, cl_mem dst_buffer, long src_offset, long dst_offset, long cb, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) static intCL.clEnqueueCopyBufferRect(cl_command_queue command_queue, cl_mem src_buffer, cl_mem dst_buffer, long[] src_origin, long[] dst_origin, long[] region, long src_row_pitch, long src_slice_pitch, long dst_row_pitch, long dst_slice_pitch, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) Enqueues a command to copy a rectangular region from the buffer object to another buffer object.private static intCL.clEnqueueCopyBufferRectNative(cl_command_queue command_queue, cl_mem src_buffer, cl_mem dst_buffer, long[] src_origin, long[] dst_origin, long[] region, long src_row_pitch, long src_slice_pitch, long dst_row_pitch, long dst_slice_pitch, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) static intCL.clEnqueueCopyBufferToImage(cl_command_queue command_queue, cl_mem src_buffer, cl_mem dst_image, long src_offset, long[] dst_origin, long[] region, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) Enqueues a command to copy a buffer object to an image object.private static intCL.clEnqueueCopyBufferToImageNative(cl_command_queue command_queue, cl_mem src_buffer, cl_mem dst_image, long src_offset, long[] dst_origin, long[] region, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) static intCL.clEnqueueCopyImage(cl_command_queue command_queue, cl_mem src_image, cl_mem dst_image, long[] src_origin, long[] dst_origin, long[] region, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) Enqueues a command to copy image objects.private static intCL.clEnqueueCopyImageNative(cl_command_queue command_queue, cl_mem src_image, cl_mem dst_image, long[] src_origin, long[] dst_origin, long[] region, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) static intCL.clEnqueueCopyImageToBuffer(cl_command_queue command_queue, cl_mem src_image, cl_mem dst_buffer, long[] src_origin, long[] region, long dst_offset, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) Enqueues a command to copy an image object to a buffer object.private static intCL.clEnqueueCopyImageToBufferNative(cl_command_queue command_queue, cl_mem src_image, cl_mem dst_buffer, long[] src_origin, long[] region, long dst_offset, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) static intCL.clEnqueueFillBuffer(cl_command_queue command_queue, cl_mem buffer, Pointer pattern, long pattern_size, long offset, long size, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) Enqueues a command to fill a buffer object with a pattern of a given pattern size.private static intCL.clEnqueueFillBufferNative(cl_command_queue command_queue, cl_mem buffer, Pointer pattern, long pattern_size, long offset, long size, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) static intCL.clEnqueueFillImage(cl_command_queue command_queue, cl_mem image, Pointer fill_color, long[] origin, long[] region, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) Enqueues a command to fill an image object with a specified color.private static intCL.clEnqueueFillImageNative(cl_command_queue command_queue, cl_mem image, Pointer fill_color, long[] origin, long[] region, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) static ByteBufferCL.clEnqueueMapBuffer(cl_command_queue command_queue, cl_mem buffer, boolean blocking_map, long map_flags, long offset, long cb, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event, int[] errcode_ret) Enqueues a command to map a region of the buffer object given bybufferinto the host address space and returns a pointer to this mapped region.private static ByteBufferCL.clEnqueueMapBufferNative(cl_command_queue command_queue, cl_mem buffer, boolean blocking_map, long map_flags, long offset, long cb, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event, int[] errcode_ret) static ByteBufferCL.clEnqueueMapImage(cl_command_queue command_queue, cl_mem image, boolean blocking_map, long map_flags, long[] origin, long[] region, long[] image_row_pitch, long[] image_slice_pitch, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event, int[] errcode_ret) Enqueues a command to map a region of an image object into the host address space and returns a pointer to this mapped region.private static ByteBufferCL.clEnqueueMapImageNative(cl_command_queue command_queue, cl_mem image, boolean blocking_map, long map_flags, long[] origin, long[] region, long[] image_row_pitch, long[] image_slice_pitch, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event, int[] errcode_ret) static intCL.clEnqueueMigrateMemObjects(cl_command_queue command_queue, int num_mem_objects, cl_mem[] mem_objects, long flags, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) Enqueues a command to indicate which device a set of memory objects should be associated with.private static intCL.clEnqueueMigrateMemObjectsNative(cl_command_queue command_queue, int num_mem_objects, cl_mem[] mem_objects, long flags, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) static intCL.clEnqueueNativeKernel(cl_command_queue command_queue, EnqueueNativeKernelFunction user_func, Object args, long cb_args, int num_mem_objects, cl_mem[] mem_list, Pointer[] args_mem_loc, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) Enqueues a command to execute a native C/C++ function not compiled using the OpenCL compiler.private static intCL.clEnqueueNativeKernelNative(cl_command_queue command_queue, EnqueueNativeKernelFunction user_func, Object args, long cb_args, int num_mem_objects, cl_mem[] mem_list, Pointer[] args_mem_loc, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) static intCL.clEnqueueReadBuffer(cl_command_queue command_queue, cl_mem buffer, boolean blocking_read, long offset, long cb, Pointer ptr, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) Enqueue commands to read from a buffer object to host memory.private static intCL.clEnqueueReadBufferNative(cl_command_queue command_queue, cl_mem buffer, boolean blocking_read, long offset, long cb, Pointer ptr, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) static intCL.clEnqueueReadBufferRect(cl_command_queue command_queue, cl_mem buffer, boolean blocking_read, long[] buffer_offset, long[] host_offset, long[] region, long buffer_row_pitch, long buffer_slice_pitch, long host_row_pitch, long host_slice_pitch, Pointer ptr, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) Enqueue commands to read from a rectangular region from a buffer object to host memory.private static intCL.clEnqueueReadBufferRectNative(cl_command_queue command_queue, cl_mem buffer, boolean blocking_read, long[] buffer_offset, long[] host_offset, long[] region, long buffer_row_pitch, long buffer_slice_pitch, long host_row_pitch, long host_slice_pitch, Pointer ptr, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) static intCL.clEnqueueReadImage(cl_command_queue command_queue, cl_mem image, boolean blocking_read, long[] origin, long[] region, long row_pitch, long slice_pitch, Pointer ptr, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) Enqueues a command to read from a 2D or 3D image object to host memory.private static intCL.clEnqueueReadImageNative(cl_command_queue command_queue, cl_mem image, boolean blocking_read, long[] origin, long[] region, long row_pitch, long slice_pitch, Pointer ptr, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) static intCL.clEnqueueReleaseGLObjects(cl_command_queue command_queue, int num_objects, cl_mem[] mem_objects, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) Release OpenCL memory objects that have been created from OpenGL objects.private static intCL.clEnqueueReleaseGLObjectsNative(cl_command_queue command_queue, int num_objects, cl_mem[] mem_objects, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) static intCL.clEnqueueUnmapMemObject(cl_command_queue command_queue, cl_mem memobj, ByteBuffer mapped_ptr, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) Enqueues a command to unmap a previously mapped region of a memory object.private static intCL.clEnqueueUnmapMemObjectNative(cl_command_queue command_queue, cl_mem memobj, ByteBuffer mapped_ptr, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) static intCL.clEnqueueWriteBuffer(cl_command_queue command_queue, cl_mem buffer, boolean blocking_write, long offset, long cb, Pointer ptr, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) Enqueue commands to write to a buffer object from host memory.private static intCL.clEnqueueWriteBufferNative(cl_command_queue command_queue, cl_mem buffer, boolean blocking_write, long offset, long cb, Pointer ptr, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) static intCL.clEnqueueWriteBufferRect(cl_command_queue command_queue, cl_mem buffer, boolean blocking_write, long[] buffer_offset, long[] host_offset, long[] region, long buffer_row_pitch, long buffer_slice_pitch, long host_row_pitch, long host_slice_pitch, Pointer ptr, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) Enqueue commands to write a rectangular region to a buffer object from host memory.private static intCL.clEnqueueWriteBufferRectNative(cl_command_queue command_queue, cl_mem buffer, boolean blocking_write, long[] buffer_offset, long[] host_offset, long[] region, long buffer_row_pitch, long buffer_slice_pitch, long host_row_pitch, long host_slice_pitch, Pointer ptr, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) static intCL.clEnqueueWriteImage(cl_command_queue command_queue, cl_mem image, boolean blocking_write, long[] origin, long[] region, long input_row_pitch, long input_slice_pitch, Pointer ptr, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) Enqueues a command to write to a 2D or 3D image object from host memory.private static intCL.clEnqueueWriteImageNative(cl_command_queue command_queue, cl_mem image, boolean blocking_write, long[] origin, long[] region, long input_row_pitch, long input_slice_pitch, Pointer ptr, int num_events_in_wait_list, cl_event[] event_wait_list, cl_event event) static intCL.clGetGLObjectInfo(cl_mem memobj, int[] gl_object_type, int[] gl_object_name) Query an OpenGL memory object used to create an OpenCL memory object.private static intCL.clGetGLObjectInfoNative(cl_mem memobj, int[] gl_object_type, int[] gl_object_name) static intCL.clGetGLTextureInfo(cl_mem memobj, int param_name, long param_value_size, Pointer param_value, long[] param_value_size_ret) Returns additional information about the GL texture object associated with a memory object.private static intCL.clGetGLTextureInfoNative(cl_mem memobj, int param_name, long param_value_size, Pointer param_value, long[] param_value_size_ret) static intCL.clGetImageInfo(cl_mem image, int param_name, long param_value_size, Pointer param_value, long[] param_value_size_ret) Get information specific to an image object.private static intCL.clGetImageInfoNative(cl_mem image, int param_name, long param_value_size, Pointer param_value, long[] param_value_size_ret) static intCL.clGetMemObjectInfo(cl_mem memobj, int param_name, long param_value_size, Pointer param_value, long[] param_value_size_ret) Used to get information that is common to all memory objects (buffer and image objects).private static intCL.clGetMemObjectInfoNative(cl_mem memobj, int param_name, long param_value_size, Pointer param_value, long[] param_value_size_ret) static intCL.clGetPipeInfo(cl_mem pipe, int param_name, long param_value_size, Pointer param_value, long[] param_value_size_ret) Get information specific to a pipe object created with clCreatePipe.private static intCL.clGetPipeInfoNative(cl_mem pipe, int param_name, long param_value_size, Pointer param_value, long[] param_value_size_ret) static intCL.clReleaseMemObject(cl_mem memobj) Decrements the memory object reference count.private static intCL.clReleaseMemObjectNative(cl_mem memobj) static intCL.clRetainMemObject(cl_mem memobj) Increments the memory object reference count.private static intCL.clRetainMemObjectNative(cl_mem memobj) static intCL.clSetMemObjectDestructorCallback(cl_mem memobj, MemObjectDestructorCallbackFunction pfn_notify, Object user_data) Registers a user callback function that will be called when the memory object is deleted and its resources freed.private static intCL.clSetMemObjectDestructorCallbackNative(cl_mem memobj, MemObjectDestructorCallbackFunction pfn_notify, Object user_data) voidThe function that will be called
CL.clCreateFromGLTexture(cl_context, long, int, int, int, int[])