Table of Contents

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

handle nint

Properties

Handle

public nint Handle { get; }

Property Value

nint

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

context OpenCLContextHandle

Returns

OpenCLTypes.Context

implicit operator OpenCLContextHandle(Context)

public static implicit operator OpenCLContextHandle(OpenCLTypes.Context context)

Parameters

context OpenCLTypes.Context

Returns

OpenCLContextHandle

implicit operator nint(Context)

public static implicit operator nint(OpenCLTypes.Context context)

Parameters

context OpenCLTypes.Context

Returns

nint

implicit operator Context(nint)

public static implicit operator OpenCLTypes.Context(nint handle)

Parameters

handle nint

Returns

OpenCLTypes.Context