本文整理汇总了C#中Cloo.Bindings.CLContextHandle类的典型用法代码示例。如果您正苦于以下问题:C# CLContextHandle类的具体用法?C# CLContextHandle怎么用?C# CLContextHandle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CLContextHandle类属于Cloo.Bindings命名空间,在下文中一共展示了CLContextHandle类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: 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
示例2: CreateImage2D
public static new CLMemoryHandle CreateImage2D(
CLContextHandle context,
ComputeMemoryFlags flags,
ref ComputeImageFormat image_format,
IntPtr image_width,
IntPtr image_height,
IntPtr image_row_pitch,
IntPtr host_ptr,
out ComputeErrorCode errcode_ret)
{
Trace.WriteLine("WARNING! clCreateImage2D has been deprecated in OpenCL 1.2.");
return CL11.CreateImage2D(context, flags, ref image_format, image_width, image_height, image_row_pitch, host_ptr, out errcode_ret);
}
开发者ID:ddrinka,项目名称:Cloo,代码行数:13,代码来源:CL12.cs
示例3: RetainContext
public static extern ComputeErrorCode RetainContext(
CLContextHandle context);
开发者ID:aokomoriuta,项目名称:StudiesOfOpenTK,代码行数:2,代码来源:CL10.cs
示例4: GetContextInfo
public static extern ComputeErrorCode GetContextInfo(
CLContextHandle context,
ComputeContextInfo param_name,
IntPtr param_value_size,
IntPtr param_value,
out IntPtr param_value_size_ret);
开发者ID:aokomoriuta,项目名称:StudiesOfOpenTK,代码行数:6,代码来源:CL10.cs
示例5: CreateProgramWithSource
public static extern CLProgramHandle CreateProgramWithSource(
CLContextHandle context,
Int32 count,
[In] String[] strings,
[MarshalAs(UnmanagedType.LPArray)] IntPtr[] lengths,
out ComputeErrorCode errcode_ret);
开发者ID:aokomoriuta,项目名称:StudiesOfOpenTK,代码行数:6,代码来源:CL10.cs
示例6: 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
示例7: CreateFromGLRenderbuffer
public static extern CLMemoryHandle CreateFromGLRenderbuffer(
CLContextHandle context,
ComputeMemoryFlags flags,
Int32 renderbuffer,
out ComputeErrorCode errcode_ret);
开发者ID:aokomoriuta,项目名称:StudiesOfOpenTK,代码行数:5,代码来源:CL10.cs
示例8: RetainContext
public ComputeErrorCode RetainContext(CLContextHandle context)
{
return StaticRetainContext(context);
}
开发者ID:nathanpackard,项目名称:openCLoo,代码行数:4,代码来源:CL10.cs
示例9: CreateFromGLTexture2D
public CLMemoryHandle CreateFromGLTexture2D(CLContextHandle context, ComputeMemoryFlags flags, Int32 target, Int32 miplevel, Int32 texture, out ComputeErrorCode errcode_ret)
{
return StaticCreateFromGLTexture2D(context, flags, target, miplevel, texture, out errcode_ret);
}
开发者ID:nathanpackard,项目名称:openCLoo,代码行数:4,代码来源:CL10.cs
示例10: CreateFromGLTexture
public CLMemoryHandle CreateFromGLTexture(CLContextHandle context, ComputeMemoryFlags flags, int texture_target, int miplevel, int texture, out ComputeErrorCode errcode_ret)
{
throw new NotImplementedException();
}
开发者ID:nathanpackard,项目名称:openCLoo,代码行数:4,代码来源:CL10.cs
示例11: CreateFromGLBuffer
public CLMemoryHandle CreateFromGLBuffer(CLContextHandle context, ComputeMemoryFlags flags, Int32 bufobj, out ComputeErrorCode errcode_ret)
{
return StaticCreateFromGLBuffer(context, flags, bufobj, out errcode_ret);
}
开发者ID:nathanpackard,项目名称:openCLoo,代码行数:4,代码来源:CL10.cs
示例12: CreateCommandQueueWithProperties
public CLCommandQueueHandle CreateCommandQueueWithProperties(CLContextHandle context, CLDeviceHandle device, ComputeCommandQueueFlags properties, out ComputeErrorCode errcode_ret)
{
throw new NotImplementedException();
}
开发者ID:nathanpackard,项目名称:openCLoo,代码行数:4,代码来源:CL10.cs
示例13: CreateBuffer
public CLMemoryHandle CreateBuffer(CLContextHandle context, ComputeMemoryFlags flags, IntPtr size, IntPtr host_ptr, out ComputeErrorCode errcode_ret)
{
return StaticCreateBuffer(context, flags, size, host_ptr, out errcode_ret);
}
开发者ID:nathanpackard,项目名称:openCLoo,代码行数:4,代码来源:CL10.cs
示例14: ComputeSvmFree
public void ComputeSvmFree(CLContextHandle context, CLMemoryHandle svm_pointer)
{
throw new NotImplementedException();
}
开发者ID:nathanpackard,项目名称:openCLoo,代码行数:4,代码来源:CL10.cs
示例15: ComputeSvmAlloc
public CLMemoryHandle ComputeSvmAlloc(CLContextHandle context, ComputeMemoryFlags flags, IntPtr size, int alignment)
{
throw new NotImplementedException();
}
开发者ID:nathanpackard,项目名称:openCLoo,代码行数:4,代码来源:CL10.cs
示例16: StaticCreateFromGLBuffer
public static extern CLMemoryHandle StaticCreateFromGLBuffer(CLContextHandle context, ComputeMemoryFlags flags, Int32 bufobj, out ComputeErrorCode errcode_ret);
开发者ID:nathanpackard,项目名称:openCLoo,代码行数:1,代码来源:CL10.cs
示例17: LinkProgram
public ComputeErrorCode LinkProgram(CLContextHandle context, int num_devices, [MarshalAs(UnmanagedType.LPArray)] CLDeviceHandle[] device_list, string options, int num_input_programs, ComputeProgramBuildNotifier pfn_notify, IntPtr user_data, out ComputeErrorCode errcode_ret)
{
throw new NotImplementedException();
}
开发者ID:nathanpackard,项目名称:openCLoo,代码行数:4,代码来源:CL10.cs
示例18: CreateImage
public CLMemoryHandle CreateImage(CLContextHandle context, ComputeMemoryFlags flags, ref ComputeImageFormat image_format, ref ComputeImageDescription image_desc, IntPtr host_ptr, out ComputeErrorCode errcode_ret)
{
throw new NotImplementedException();
}
开发者ID:nathanpackard,项目名称:openCLoo,代码行数:4,代码来源:CL10.cs
示例19: CreateCommandQueue
public static extern CLCommandQueueHandle CreateCommandQueue(
CLContextHandle context,
CLDeviceHandle device,
ComputeCommandQueueFlags properties,
out ComputeErrorCode errcode_ret);
开发者ID:aokomoriuta,项目名称:StudiesOfOpenTK,代码行数:5,代码来源:CL10.cs
示例20: CreateImage2D
public CLMemoryHandle CreateImage2D(CLContextHandle context, ComputeMemoryFlags flags, ref ComputeImageFormat image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, IntPtr host_ptr, out ComputeErrorCode errcode_ret)
{
return StaticCreateImage2D(context, flags,ref image_format, image_width, image_height, image_row_pitch, host_ptr, out errcode_ret);
}
开发者ID:nathanpackard,项目名称:openCLoo,代码行数:4,代码来源:CL10.cs
注:本文中的Cloo.Bindings.CLContextHandle类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论