Пример #1
0
 internal static extern ErrorCode clEnqueueWriteBuffer(
     cl_command_queue command_queue,
     cl_mem buffer,
     cl_bool blocking_write,
     IntPtr offset,
     IntPtr cb,
     void *ptr,
     cl_uint num_events_in_wait_list,
     IntPtr *event_wait_list,
     cl_event *_event);
Пример #2
0
 internal static extern ErrorCode clEnqueueWriteBuffer(
     cl_command_queue command_queue,
     cl_mem buffer,
     cl_bool blocking_write,
     IntPtr offset,
     IntPtr cb,
     void *ptr,
     cl_uint num_events_in_wait_list,
     [In][MarshalAs(UnmanagedType.LPArray)] cl_event[] event_wait_list,
     cl_event *_event);
Пример #3
0
 internal static extern void *clEnqueueMapBuffer(
     cl_command_queue command_queue,
     cl_mem buffer,
     cl_bool blocking_map,
     cl_map_flags map_flags,
     IntPtr offset,
     IntPtr cb,
     cl_uint num_events_in_wait_list,
     IntPtr *event_wait_list,
     cl_event *_event,
     out ErrorCode errcode_ret);
Пример #4
0
 internal static extern void *clEnqueueMapBuffer(
     cl_command_queue command_queue,
     cl_mem buffer,
     cl_bool blocking_map,
     cl_map_flags map_flags,
     IntPtr offset,
     IntPtr cb,
     cl_uint num_events_in_wait_list,
     [In][MarshalAs(UnmanagedType.LPArray)] cl_event[] event_wait_list,
     cl_event *_event,
     out ErrorCode errcode_ret);
Пример #5
0
 internal static extern ErrorCode clEnqueueWriteImage(
     cl_command_queue command_queue,
     cl_mem image,
     cl_bool blocking_write,
     IntPtr *origin,
     IntPtr *region,
     IntPtr input_row_pitch,
     IntPtr input_slice_pitch,
     void *ptr,
     cl_uint num_events_in_wait_list,
     IntPtr *event_wait_list,
     cl_event *_event);
Пример #6
0
 internal static extern ErrorCode clEnqueueWriteImage(
     cl_command_queue command_queue,
     cl_mem image,
     cl_bool blocking_write,
     [In][MarshalAs(UnmanagedType.LPArray, SizeConst = 3)] IntPtr[] origin,
     [In][MarshalAs(UnmanagedType.LPArray, SizeConst = 3)] IntPtr[] region,
     IntPtr input_row_pitch,
     IntPtr input_slice_pitch,
     void *ptr,
     cl_uint num_events_in_wait_list,
     [In][MarshalAs(UnmanagedType.LPArray)] cl_event[] event_wait_list,
     cl_event *_event);
Пример #7
0
 internal static extern void *clEnqueueMapImage(
     cl_command_queue command_queue,
     cl_mem image,
     cl_bool blocking_map,
     cl_map_flags map_flags,
     IntPtr *origin,
     IntPtr *region,
     out IntPtr image_row_pitch,
     out IntPtr image_slice_pitch,
     cl_uint num_events_in_wait_list,
     IntPtr *event_wait_list,
     cl_event *_event,
     out ErrorCode errcode_ret);
Пример #8
0
 internal static extern void *clEnqueueMapImage(
     cl_command_queue command_queue,
     cl_mem image,
     cl_bool blocking_map,
     cl_map_flags map_flags,
     [In][MarshalAs(UnmanagedType.LPArray, SizeConst = 3)] IntPtr[] origin,
     [In][MarshalAs(UnmanagedType.LPArray, SizeConst = 3)] IntPtr[] region,
     out IntPtr image_row_pitch,
     out IntPtr image_slice_pitch,
     cl_uint num_events_in_wait_list,
     [In][MarshalAs(UnmanagedType.LPArray)] cl_event[] event_wait_list,
     cl_event *_event,
     out ErrorCode errcode_ret);
Пример #9
0
 internal static extern ErrorCode clEnqueueWriteBufferRect(
     cl_command_queue command_queue,
     cl_mem buffer,
     cl_bool blocking_write,
     IntPtr *buffer_offset,
     IntPtr *host_offset,
     IntPtr *region,
     IntPtr buffer_row_pitch,
     IntPtr buffer_slice_pitch,
     IntPtr host_row_pitch,
     IntPtr host_slice_pitch,
     void *ptr,
     cl_uint num_events_in_wait_list,
     cl_event *_event_wait_list,
     cl_event *_event);
Пример #10
0
 internal static extern ErrorCode clEnqueueWriteBufferRect(
     cl_command_queue command_queue,
     cl_mem buffer,
     cl_bool blocking_write,
     [In] IntPtr[] buffer_offset,
     [In] IntPtr[] host_offset,
     [In] IntPtr[] region,
     IntPtr buffer_row_pitch,
     IntPtr buffer_slice_pitch,
     IntPtr host_row_pitch,
     IntPtr host_slice_pitch,
     void *ptr,
     cl_uint num_events_in_wait_list,
     [In][MarshalAs(UnmanagedType.LPArray)] cl_event[] _event_wait_list,
     cl_event *_event);
Пример #11
0
 internal static extern cl_sampler clCreateSampler(cl_context context, cl_bool normalized_coords, cl_addressing_mode addressing_mode, cl_filter_mode filter_mode, out ErrorCode errcode_ret);
Пример #12
0
 public static ErrorCode EnqueueWriteBufferRect(cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_write, IntPtr *buffer_offset, IntPtr *host_offset, IntPtr *region, long buffer_row_pitch, long buffer_slice_pitch, long host_row_pitch, long host_slice_pitch, void *ptr, int num_events_in_wait_list, cl_event *_event_wait_list, cl_event *_event)
 {
     return(OpenCLAPI.clEnqueueWriteBufferRect(command_queue, buffer, blocking_write, buffer_offset, host_offset, region, (IntPtr)buffer_row_pitch, (IntPtr)buffer_slice_pitch, (IntPtr)host_row_pitch, (IntPtr)host_slice_pitch, ptr, (uint)num_events_in_wait_list, _event_wait_list, _event));
 }
Пример #13
0
 /// <summary>
 /// OpenCL 1.1
 /// </summary>
 /// <param name="command_queue"></param>
 /// <param name="buffer"></param>
 /// <param name="blocking_read"></param>
 /// <param name="buffer_offset"></param>
 /// <param name="host_offset"></param>
 /// <param name="region"></param>
 /// <param name="buffer_row_pitch"></param>
 /// <param name="buffer_slice_pitch"></param>
 /// <param name="host_row_pitch"></param>
 /// <param name="host_slice_pitch"></param>
 /// <param name="ptr"></param>
 /// <param name="num_events_in_wait_list"></param>
 /// <param name="_event_wait_list"></param>
 /// <param name="_event"></param>
 /// <returns></returns>
 public static ErrorCode EnqueueWriteBufferRect(cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_write, IntPtr[] buffer_offset, IntPtr[] host_offset, IntPtr[] region, IntPtr buffer_row_pitch, IntPtr buffer_slice_pitch, IntPtr host_row_pitch, IntPtr host_slice_pitch, void *ptr, cl_uint num_events_in_wait_list, cl_event[] _event_wait_list, cl_event *_event)
 {
     return(OpenCLAPI.clEnqueueWriteBufferRect(command_queue, buffer, blocking_write, buffer_offset, host_offset, region, buffer_row_pitch, buffer_slice_pitch, host_row_pitch, host_slice_pitch, ptr, num_events_in_wait_list, _event_wait_list, _event));
 }
Пример #14
0
		public static ErrorCode EnqueueReadBufferRect(cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_read, IntPtr* buffer_offset, IntPtr* host_offset, IntPtr* region, Int64 buffer_row_pitch, Int64 buffer_slice_pitch, Int64 host_row_pitch, Int64 host_slice_pitch, void* ptr, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* _event) {
			return OpenCLAPI.clEnqueueReadBufferRect(command_queue, buffer, blocking_read, buffer_offset, host_offset, region, (IntPtr)buffer_row_pitch, (IntPtr)buffer_slice_pitch, (IntPtr)host_row_pitch, (IntPtr)host_slice_pitch, ptr, (UInt32)num_events_in_wait_list, event_wait_list, _event);
		}