• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# ComputeErrorCode类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中ComputeErrorCode的典型用法代码示例。如果您正苦于以下问题:C# ComputeErrorCode类的具体用法?C# ComputeErrorCode怎么用?C# ComputeErrorCode使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ComputeErrorCode类属于命名空间,在下文中一共展示了ComputeErrorCode类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: CreateContext

 public static unsafe extern IntPtr CreateContext(
     IntPtr* properties,
     Int32 num_devices,
     IntPtr* devices,
     /* void (*pfn_notify)(const char *, const IntPtr, IntPtr, IntPtr) */ IntPtr pfn_notify,
     /* void* */ IntPtr user_data,
     ComputeErrorCode* errcode_ret);
开发者ID:yeerkkiller1,项目名称:Go-AI,代码行数:7,代码来源:CL10.cs


示例2: ComputeSampler

        /// <summary>
        /// ComputeSamplerWithProperties
        /// </summary>
        /// <param name="context"></param>
        /// <param name="sampler_properties"></param>
        /// <param name="error"></param>
        public ComputeSampler(ComputeContext context, ComputeSamplerInfo[] sampler_properties, out ComputeErrorCode error)
        {
            error = ComputeErrorCode.Success;
            Handle = CLInterface.CL20.CreateSamplerWithProperties(context.Handle, sampler_properties, out error);
            ComputeException.ThrowOnError(error);

            SetID(Handle.Value);

            this.context = context;
        }
开发者ID:nathanpackard,项目名称:openCLoo,代码行数:16,代码来源:ComputeSampler.cs


示例3: CreateFromGLTexture3D

 public static new CLMemoryHandle CreateFromGLTexture3D(
     CLContextHandle context,
     ComputeMemoryFlags flags,
     Int32 target,
     Int32 miplevel,
     Int32 texture,
     out ComputeErrorCode errcode_ret)
 {
     Trace.WriteLine("WARNING! clCreateFromGLTexture3D has been deprecated in OpenCL 1.2.");
     return CL11.CreateFromGLTexture3D(context, flags, target, miplevel, texture, out errcode_ret);
 }
开发者ID:ddrinka,项目名称:Cloo,代码行数:11,代码来源:CL12.cs


示例4: CreateSubBuffer

 public static unsafe extern IntPtr CreateSubBuffer(
     IntPtr buffer,
     ComputeMemoryFlags flags,
     ComputeBufferCreateType buffer_create_type,
     /* const void * */ IntPtr buffer_create_info,
     ComputeErrorCode* errcode_ret);
开发者ID:yeerkkiller1,项目名称:Go-AI,代码行数:6,代码来源:CL11.cs


示例5: ComputeException

 /// <summary>
 /// Creates a new <see cref="ComputeException"/> with a specified <see cref="ComputeErrorCode"/>.
 /// </summary>
 /// <param name="code"> A <see cref="ComputeErrorCode"/>. </param>
 public ComputeException(ComputeErrorCode code)
     : base("OpenCL error code detected: " + code.ToString() + ".")
 {
     this.code = code;
 }
开发者ID:Dutchman97,项目名称:ConcurrencyPracticum3,代码行数:9,代码来源:ComputeException.cs


示例6: EnqueueMapImage

 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);
开发者ID:aokomoriuta,项目名称:StudiesOfOpenTK,代码行数:13,代码来源:CL10.cs


示例7: CreateSampler

 public static extern CLSamplerHandle CreateSampler(
     CLContextHandle context,
     [MarshalAs(UnmanagedType.Bool)] bool normalized_coords,
     ComputeImageAddressing addressing_mode,
     ComputeImageFiltering filter_mode,
     out ComputeErrorCode errcode_ret);
开发者ID:aokomoriuta,项目名称:StudiesOfOpenTK,代码行数:6,代码来源:CL10.cs


示例8: CreateProgramWithBinary

 public static extern CLProgramHandle CreateProgramWithBinary(
     CLContextHandle context,
     Int32 num_devices,
     [MarshalAs(UnmanagedType.LPArray)] CLDeviceHandle[] device_list,
     [MarshalAs(UnmanagedType.LPArray)] IntPtr[] lengths,
     [MarshalAs(UnmanagedType.LPArray)] IntPtr[] binaries,
     [MarshalAs(UnmanagedType.LPArray)] Int32[] binary_status,
     out ComputeErrorCode errcode_ret);
开发者ID:aokomoriuta,项目名称:StudiesOfOpenTK,代码行数:8,代码来源:CL10.cs


示例9: CreateImage3D

 public static extern CLMemoryHandle CreateImage3D(
     CLContextHandle context,
     ComputeMemoryFlags flags,
     ref ComputeImageFormat image_format,
     IntPtr image_width,
     IntPtr image_height,
     IntPtr image_depth,
     IntPtr image_row_pitch,
     IntPtr image_slice_pitch,
     IntPtr host_ptr,
     out ComputeErrorCode errcode_ret);
开发者ID:aokomoriuta,项目名称:StudiesOfOpenTK,代码行数:11,代码来源:CL10.cs


示例10: CreateUserEvent

 public CLEventHandle CreateUserEvent(CLContextHandle context, out ComputeErrorCode errcode_ret)
 {
     throw new NotImplementedException();
 }
开发者ID:nathanpackard,项目名称:openCLoo,代码行数:4,代码来源:CL10.cs


示例11: CreateSubBuffer

 public CLMemoryHandle CreateSubBuffer(CLMemoryHandle buffer, ComputeMemoryFlags flags, ComputeBufferCreateType buffer_create_type, ref SysIntX2 buffer_create_info, out ComputeErrorCode errcode_ret)
 {
     throw new NotImplementedException();
 }
开发者ID:nathanpackard,项目名称:openCLoo,代码行数:4,代码来源:CL10.cs


示例12: CreateSamplerWithProperties

 public CLSamplerHandle CreateSamplerWithProperties(CLContextHandle context, [MarshalAs(UnmanagedType.LPArray)] ComputeSamplerInfo[] normalized_coords, out ComputeErrorCode errcode_ret)
 {
     throw new NotImplementedException();
 }
开发者ID:nathanpackard,项目名称:openCLoo,代码行数:4,代码来源:CL10.cs


示例13: CreateProgramWithBuiltInKernels

 public CLProgramHandle CreateProgramWithBuiltInKernels(CLContextHandle context, int num_devices, [MarshalAs(UnmanagedType.LPArray)] CLDeviceHandle[] device_list, string kernel_names, out ComputeErrorCode errcode_ret)
 {
     throw new NotImplementedException();
 }
开发者ID:nathanpackard,项目名称:openCLoo,代码行数:4,代码来源:CL10.cs


示例14: CreatePipe

 public CLMemoryHandle CreatePipe(CLContextHandle context, ComputeMemoryFlags flags, int pipe_packet_size, int pipe_max_packets, [MarshalAs(UnmanagedType.LPArray)] IntPtr[] properties, out ComputeErrorCode errcode_ret)
 {
     throw new NotImplementedException();
 }
开发者ID:nathanpackard,项目名称:openCLoo,代码行数:4,代码来源:CL10.cs


示例15: CreateKernel

 public CLKernelHandle CreateKernel(CLProgramHandle program, String kernel_name, out ComputeErrorCode errcode_ret)
 {
     return StaticCreateKernel(program, kernel_name, out errcode_ret);
 }
开发者ID:nathanpackard,项目名称:openCLoo,代码行数:4,代码来源:CL10.cs


示例16: CreateFromGLRenderbuffer

 public static extern CLMemoryHandle CreateFromGLRenderbuffer(
     CLContextHandle context,
     ComputeMemoryFlags flags,
     Int32 renderbuffer,
     out ComputeErrorCode errcode_ret);
开发者ID:aokomoriuta,项目名称:StudiesOfOpenTK,代码行数:5,代码来源:CL10.cs


示例17: CreateFromGLTexture3D

 public static extern CLMemoryHandle CreateFromGLTexture3D(
     CLContextHandle context,
     ComputeMemoryFlags flags,
     Int32 target,
     Int32 miplevel,
     Int32 texture,
     out ComputeErrorCode errcode_ret);
开发者ID:aokomoriuta,项目名称:StudiesOfOpenTK,代码行数:7,代码来源:CL10.cs


示例18: EnqueueMapBuffer

 public 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 CLEventHandle new_event, out ComputeErrorCode errcode_ret)
 {
     return StaticEnqueueMapBuffer(command_queue, buffer, blocking_map, map_flags, offset, cb, num_events_in_wait_list, event_wait_list, out new_event, out errcode_ret);
 }
开发者ID:nathanpackard,项目名称:openCLoo,代码行数:4,代码来源:CL10.cs


示例19: CreateKernel

 public static extern CLKernelHandle CreateKernel(
     CLProgramHandle program,
     String kernel_name,
     out ComputeErrorCode errcode_ret);
开发者ID:aokomoriuta,项目名称:StudiesOfOpenTK,代码行数:4,代码来源:CL10.cs


示例20: EnqueueMapImage

 public 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 CLEventHandle new_event, out ComputeErrorCode errcode_ret)
 {
     return StaticEnqueueMapImage(command_queue, image, blocking_map, map_flags, ref origin, ref region, out image_row_pitch, out image_slice_pitch, num_events_in_wait_list, event_wait_list, out new_event, out errcode_ret);
 }
开发者ID:nathanpackard,项目名称:openCLoo,代码行数:4,代码来源:CL10.cs



注:本文中的ComputeErrorCode类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ComputeMemoryFlags类代码示例发布时间:2022-05-24
下一篇:
C# ComputeCommandQueue类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap