Struct CLContext
Assembly: OpenTK.Compute.dll
Syntax
public readonly struct CLContext : IEquatable<CLContext>
Constructors
CLContext(nint)
Declaration
public CLContext(nint handle)
Parameters
Type |
Name |
Description |
nint |
handle |
|
Fields
Handle
Declaration
public readonly nint Handle
Field Value
Methods
Equals(CLContext)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(CLContext other)
Parameters
Type |
Name |
Description |
CLContext |
other |
An object to compare with this object.
|
Returns
Type |
Description |
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.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
The object to compare with the current instance.
|
Returns
Type |
Description |
bool |
true if obj and this instance are the same type and represent the same value; otherwise, false.
|
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
int |
A 32-bit signed integer that is the hash code for this instance.
|
Overrides
Operators
operator ==(CLContext, CLContext)
Declaration
public static bool operator ==(CLContext left, CLContext right)
Parameters
Returns
implicit operator nint(CLContext)
Declaration
public static implicit operator nint(CLContext context)
Parameters
Returns
operator !=(CLContext, CLContext)
Declaration
public static bool operator !=(CLContext left, CLContext right)
Parameters
Returns
Implements