Struct dim3
- Namespace
- DotCompute.Backends.CUDA.Advanced
- Assembly
- DotCompute.Backends.CUDA.dll
CUDA dimension structure.
public readonly struct dim3 : IEquatable<dim3>
- Implements
- Inherited Members
Constructors
dim3(uint, uint, uint)
CUDA dimension structure.
public dim3(uint x, uint y, uint z)
Parameters
Properties
x
The x coordinate.
public uint x { get; }
Property Value
y
The y coordinate.
public uint y { get; }
Property Value
z
The z coordinate.
public uint z { get; }
Property Value
Methods
Equals(dim3)
Determines whether the specified dim3 is equal to the current dim3.
public bool Equals(dim3 other)
Parameters
otherdim3The dim3 to compare.
Returns
- bool
True if equal; otherwise, false.
Equals(object?)
Determines whether the specified object is equal to the current dim3.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare.
Returns
- bool
True if equal; otherwise, false.
GetHashCode()
Returns the hash code for this dim3.
public override int GetHashCode()
Returns
- int
A hash code for the current dim3.
Operators
operator ==(dim3, dim3)
Determines whether two dim3 instances are equal.
public static bool operator ==(dim3 left, dim3 right)
Parameters
Returns
- bool
True if equal; otherwise, false.
operator !=(dim3, dim3)
Determines whether two dim3 instances are not equal.
public static bool operator !=(dim3 left, dim3 right)
Parameters
Returns
- bool
True if not equal; otherwise, false.