Table of Contents

Struct GridDimensions

Namespace
DotCompute.Backends.CUDA.Execution.Graph.Types
Assembly
DotCompute.Backends.CUDA.dll

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

x uint
y uint
z uint

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

other GridDimensions

An object to compare with this object.

Returns

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.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and 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

left GridDimensions
right GridDimensions

Returns

bool

operator !=(GridDimensions, GridDimensions)

public static bool operator !=(GridDimensions left, GridDimensions right)

Parameters

left GridDimensions
right GridDimensions

Returns

bool