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
handlenintThe kernel handle.
Properties
Handle
Gets the kernel handle.
public nint Handle { get; }
Property Value
Methods
Equals(OpenCLKernel)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(OpenCLKernel other)
Parameters
otherOpenCLKernelAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand 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
leftOpenCLKernelrightOpenCLKernel
Returns
operator !=(OpenCLKernel, OpenCLKernel)
Compares two OpenCLKernel instances for inequality.
public static bool operator !=(OpenCLKernel left, OpenCLKernel right)
Parameters
leftOpenCLKernelrightOpenCLKernel