Struct OpenCLKernel
- Namespace
- DotCompute.Backends.OpenCL.Types.Native
- Assembly
- DotCompute.Backends.OpenCL.dll
OpenCL kernel handle.
public readonly struct OpenCLKernel
- Inherited Members
Constructors
OpenCLKernel(nint)
Initializes a new instance of the OpenCLKernel struct.
public OpenCLKernel(nint handle)
Parameters
handlenintThe native handle value.
Fields
Handle
Gets the underlying native handle.
public readonly nint Handle
Field Value
Methods
FromIntPtr(nint)
Creates a kernel from an IntPtr.
public static OpenCLKernel FromIntPtr(nint handle)
Parameters
handlenint
Returns
ToIntPtr(OpenCLKernel)
Converts a kernel to an IntPtr.
public static nint ToIntPtr(OpenCLKernel kernel)
Parameters
kernelOpenCLKernel
Returns
ToString()
Returns a string representation of the kernel.
public override string ToString()
Returns
Operators
implicit operator nint(OpenCLKernel)
Implicitly converts a kernel to an IntPtr.
public static implicit operator nint(OpenCLKernel kernel)
Parameters
kernelOpenCLKernel
Returns
implicit operator OpenCLKernel(nint)
Implicitly converts an IntPtr to a kernel.
public static implicit operator OpenCLKernel(nint handle)
Parameters
handlenint