Struct OpenCLTypes.Context
- Namespace
- DotCompute.Backends.OpenCL.Types.Native
- Assembly
- DotCompute.Backends.OpenCL.dll
Type alias for OpenCLContextHandle.
[SuppressMessage("Microsoft.Naming", "CA1724:TypeNamesShouldNotMatchNamespaces", Justification = "Backward compatibility wrapper")]
public readonly struct OpenCLTypes.Context
- Inherited Members
Constructors
Context(nint)
public Context(nint handle)
Parameters
handlenint
Properties
Handle
public nint Handle { get; }
Property Value
Methods
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Operators
implicit operator Context(OpenCLContextHandle)
public static implicit operator OpenCLTypes.Context(OpenCLContextHandle context)
Parameters
contextOpenCLContextHandle
Returns
implicit operator OpenCLContextHandle(Context)
public static implicit operator OpenCLContextHandle(OpenCLTypes.Context context)
Parameters
contextOpenCLTypes.Context
Returns
implicit operator nint(Context)
public static implicit operator nint(OpenCLTypes.Context context)
Parameters
contextOpenCLTypes.Context
Returns
implicit operator Context(nint)
public static implicit operator OpenCLTypes.Context(nint handle)
Parameters
handlenint