本文整理汇总了C#中Cloo.Bindings.CLContextHandle类的典型用法代码示例。如果您正苦于以下问题:C# CLContextHandle类的具体用法?C# CLContextHandle怎么用?C# CLContextHandle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CLContextHandle类属于Cloo.Bindings命名空间,在下文中一共展示了CLContextHandle类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例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);
}
示例3: RetainContext
public static extern ComputeErrorCode RetainContext(
CLContextHandle context);
示例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);
示例5: CreateProgramWithSource
public static extern CLProgramHandle CreateProgramWithSource(
CLContextHandle context,
Int32 count,
[In] String[] strings,
[MarshalAs(UnmanagedType.LPArray)] IntPtr[] lengths,
out ComputeErrorCode errcode_ret);
示例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);
示例7: CreateFromGLRenderbuffer
public static extern CLMemoryHandle CreateFromGLRenderbuffer(
CLContextHandle context,
ComputeMemoryFlags flags,
Int32 renderbuffer,
out ComputeErrorCode errcode_ret);
示例8: RetainContext
public ComputeErrorCode RetainContext(CLContextHandle context)
{
return StaticRetainContext(context);
}
示例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);
}
示例10: CreateFromGLTexture
public CLMemoryHandle CreateFromGLTexture(CLContextHandle context, ComputeMemoryFlags flags, int texture_target, int miplevel, int texture, out ComputeErrorCode errcode_ret)
{
throw new NotImplementedException();
}
示例11: CreateFromGLBuffer
public CLMemoryHandle CreateFromGLBuffer(CLContextHandle context, ComputeMemoryFlags flags, Int32 bufobj, out ComputeErrorCode errcode_ret)
{
return StaticCreateFromGLBuffer(context, flags, bufobj, out errcode_ret);
}
示例12: CreateCommandQueueWithProperties
public CLCommandQueueHandle CreateCommandQueueWithProperties(CLContextHandle context, CLDeviceHandle device, ComputeCommandQueueFlags properties, out ComputeErrorCode errcode_ret)
{
throw new NotImplementedException();
}
示例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);
}
示例14: ComputeSvmFree
public void ComputeSvmFree(CLContextHandle context, CLMemoryHandle svm_pointer)
{
throw new NotImplementedException();
}
示例15: ComputeSvmAlloc
public CLMemoryHandle ComputeSvmAlloc(CLContextHandle context, ComputeMemoryFlags flags, IntPtr size, int alignment)
{
throw new NotImplementedException();
}