コード例 #1
0
 public static extern ComputeErrorCode EnqueueUnmapMemObject(
     CLCommandQueueHandle command_queue,
     CLMemoryHandle memobj,
     IntPtr mapped_ptr,
     Int32 num_events_in_wait_list,
     [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list,
     [Out, MarshalAs(UnmanagedType.LPArray, SizeConst = 1)] CLEventHandle[] new_event);
コード例 #2
0
 public static extern ComputeErrorCode EnqueueCopyBufferToImage(
     CLCommandQueueHandle command_queue,
     CLMemoryHandle src_buffer,
     CLMemoryHandle dst_image,
     IntPtr src_offset,
     ref SysIntX3 dst_origin,
     ref SysIntX3 region,
     Int32 num_events_in_wait_list,
     [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list,
     [Out, MarshalAs(UnmanagedType.LPArray, SizeConst = 1)] CLEventHandle[] new_event);
コード例 #3
0
 public static extern ComputeErrorCode EnqueueWriteBuffer(
     CLCommandQueueHandle command_queue,
     CLMemoryHandle buffer,
     [MarshalAs(UnmanagedType.Bool)] bool blocking_write,
     IntPtr offset,
     IntPtr cb,
     IntPtr ptr,
     Int32 num_events_in_wait_list,
     [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list,
     [Out, MarshalAs(UnmanagedType.LPArray, SizeConst = 1)] CLEventHandle[] new_event);
コード例 #4
0
ファイル: CL12.cs プロジェクト: uzbekdev1/Amplifier.NET
 public static extern ComputeErrorCode EnqueueFillBuffer(
     CLCommandQueueHandle command_queue,
     CLMemoryHandle buffer,
     IntPtr pattern,
     IntPtr pattern_size,
     IntPtr offset,
     IntPtr size,
     Int32 num_events_in_wait_list,
     [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list,
     [Out, MarshalAs(UnmanagedType.LPArray, SizeConst = 1)] CLEventHandle[] new_event);
コード例 #5
0
 public static extern IntPtr EnqueueMapBuffer(
     CLCommandQueueHandle command_queue,
     CLMemoryHandle buffer,
     [MarshalAs(UnmanagedType.Bool)] bool blocking_map,
     ComputeMemoryMappingFlags map_flags,
     IntPtr offset,
     IntPtr cb,
     Int32 num_events_in_wait_list,
     [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list,
     [Out, MarshalAs(UnmanagedType.LPArray, SizeConst = 1)] CLEventHandle[] new_event,
     out ComputeErrorCode errcode_ret);
コード例 #6
0
 public static extern ComputeErrorCode EnqueueWriteImage(
     CLCommandQueueHandle command_queue,
     CLMemoryHandle image,
     [MarshalAs(UnmanagedType.Bool)] bool blocking_write,
     ref SysIntX3 origin,
     ref SysIntX3 region,
     IntPtr input_row_pitch,
     IntPtr input_slice_pitch,
     IntPtr ptr,
     Int32 num_events_in_wait_list,
     [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list,
     [Out, MarshalAs(UnmanagedType.LPArray, SizeConst = 1)] CLEventHandle[] new_event);
コード例 #7
0
 public static extern IntPtr EnqueueMapImage(
     CLCommandQueueHandle command_queue,
     CLMemoryHandle image,
     [MarshalAs(UnmanagedType.Bool)] bool blocking_map,
     ComputeMemoryMappingFlags map_flags,
     ref SysIntX3 origin,
     ref SysIntX3 region,
     out IntPtr image_row_pitch,
     out IntPtr image_slice_pitch,
     Int32 num_events_in_wait_list,
     [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list,
     [Out, MarshalAs(UnmanagedType.LPArray, SizeConst = 1)] CLEventHandle[] new_event,
     out ComputeErrorCode errcode_ret);
コード例 #8
0
ファイル: CL11.cs プロジェクト: waqar41/Amplifier.NET
 public static extern ComputeErrorCode EnqueueReadBufferRect(
     CLCommandQueueHandle command_queue,
     CLMemoryHandle buffer,
     [MarshalAs(UnmanagedType.Bool)] bool blocking_read,
     ref SysIntX3 buffer_offset,
     ref SysIntX3 host_offset,
     ref SysIntX3 region,
     IntPtr buffer_row_pitch,
     IntPtr buffer_slice_pitch,
     IntPtr host_row_pitch,
     IntPtr host_slice_pitch,
     IntPtr ptr,
     Int32 num_events_in_wait_list,
     [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list,
     [Out, MarshalAs(UnmanagedType.LPArray, SizeConst = 1)] CLEventHandle[] new_event);
コード例 #9
0
 public static extern ComputeErrorCode GetGLTextureInfo(
     CLMemoryHandle memobj,
     ComputeGLTextureInfo param_name,
     IntPtr param_value_size,
     IntPtr param_value,
     out IntPtr param_value_size_ret);
コード例 #10
0
 public static extern ComputeErrorCode GetGLObjectInfo(
     CLMemoryHandle memobj,
     out ComputeGLObjectType gl_object_type,
     out Int32 gl_object_name);
コード例 #11
0
 public static extern ComputeErrorCode SetKernelArg(
     CLKernelHandle kernel,
     Int32 arg_index,
     IntPtr arg_size,
     ref CLMemoryHandle arg_value);
コード例 #12
0
 public static extern ComputeErrorCode GetImageInfo(
     CLMemoryHandle image,
     ComputeImageInfo param_name,
     IntPtr param_value_size,
     IntPtr param_value,
     out IntPtr param_value_size_ret);
コード例 #13
0
 public static extern ComputeErrorCode ReleaseMemObject(
     CLMemoryHandle memobj);
コード例 #14
0
ファイル: CL11.cs プロジェクト: waqar41/Amplifier.NET
 public static extern ComputeErrorCode SetMemObjectDestructorCallback(
     CLMemoryHandle memobj,
     ComputeMemoryDestructorNotifer pfn_notify,
     IntPtr user_data);
コード例 #15
0
ファイル: CL11.cs プロジェクト: waqar41/Amplifier.NET
 public static extern CLMemoryHandle CreateSubBuffer(
     CLMemoryHandle buffer,
     ComputeMemoryFlags flags,
     ComputeBufferCreateType buffer_create_type,
     ref SysIntX2 buffer_create_info,
     out ComputeErrorCode errcode_ret);