Table of Contents

Struct OpenCLKernel

Namespace
DotCompute.Backends.OpenCL.Execution
Assembly
DotCompute.Backends.OpenCL.dll

Wrapper for OpenCL kernel handle.

public readonly struct OpenCLKernel : IEquatable<OpenCLKernel>
Implements
Inherited Members

Constructors

OpenCLKernel(nint)

Initializes a new instance of the OpenCLKernel struct.

public OpenCLKernel(nint handle)

Parameters

handle nint

The kernel handle.

Properties

Handle

Gets the kernel handle.

public nint Handle { get; }

Property Value

nint

Methods

Equals(OpenCLKernel)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(OpenCLKernel other)

Parameters

other OpenCLKernel

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

Operators

operator ==(OpenCLKernel, OpenCLKernel)

Compares two OpenCLKernel instances for equality.

public static bool operator ==(OpenCLKernel left, OpenCLKernel right)

Parameters

left OpenCLKernel
right OpenCLKernel

Returns

bool

operator !=(OpenCLKernel, OpenCLKernel)

Compares two OpenCLKernel instances for inequality.

public static bool operator !=(OpenCLKernel left, OpenCLKernel right)

Parameters

left OpenCLKernel
right OpenCLKernel

Returns

bool