Struct OpenCLTypes.Event
- Namespace
- DotCompute.Backends.OpenCL.Types.Native
- Assembly
- DotCompute.Backends.OpenCL.dll
Type alias for OpenCLEventHandle.
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Event", Justification = "Backward compatibility wrapper")]
public readonly struct OpenCLTypes.Event : IEquatable<OpenCLTypes.Event>
- Implements
- Inherited Members
Constructors
Event(nint)
public Event(nint handle)
Parameters
handlenint
Properties
Handle
public nint Handle { get; }
Property Value
Methods
Equals(Event)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(OpenCLTypes.Event other)
Parameters
otherOpenCLTypes.EventAn 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.
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Operators
operator ==(Event, Event)
public static bool operator ==(OpenCLTypes.Event left, OpenCLTypes.Event right)
Parameters
leftOpenCLTypes.EventrightOpenCLTypes.Event
Returns
implicit operator Event(OpenCLEventHandle)
public static implicit operator OpenCLTypes.Event(OpenCLEventHandle evt)
Parameters
Returns
implicit operator OpenCLEventHandle(Event)
public static implicit operator OpenCLEventHandle(OpenCLTypes.Event evt)
Parameters
evtOpenCLTypes.Event
Returns
implicit operator nint(Event)
public static implicit operator nint(OpenCLTypes.Event evt)
Parameters
evtOpenCLTypes.Event
Returns
implicit operator Event(nint)
public static implicit operator OpenCLTypes.Event(nint handle)
Parameters
handlenint
Returns
operator !=(Event, Event)
public static bool operator !=(OpenCLTypes.Event left, OpenCLTypes.Event right)
Parameters
leftOpenCLTypes.EventrightOpenCLTypes.Event