Struct GridDimensions
Grid dimensions for kernel launch
public struct GridDimensions : IEquatable<GridDimensions>
- Implements
- Inherited Members
Constructors
GridDimensions(uint, uint, uint)
Grid dimensions for kernel launch
public GridDimensions(uint x, uint y = 1, uint z = 1)
Parameters
Properties
X
Gets or sets the x.
public uint X { readonly get; set; }
Property Value
- uint
The x.
Y
Gets or sets the y.
public uint Y { readonly get; set; }
Property Value
- uint
The y.
Z
Gets or sets the z.
public uint Z { readonly get; set; }
Property Value
- uint
The z.
Methods
Equals(GridDimensions)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(GridDimensions other)
Parameters
otherGridDimensionsAn 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 ==(GridDimensions, GridDimensions)
public static bool operator ==(GridDimensions left, GridDimensions right)
Parameters
leftGridDimensionsrightGridDimensions
Returns
operator !=(GridDimensions, GridDimensions)
public static bool operator !=(GridDimensions left, GridDimensions right)
Parameters
leftGridDimensionsrightGridDimensions