Table of Contents

Struct BlockDimensions

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

Block dimensions for kernel launch

public struct BlockDimensions : IEquatable<BlockDimensions>
Implements
Inherited Members

Constructors

BlockDimensions(uint, uint, uint)

Block dimensions for kernel launch

public BlockDimensions(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(BlockDimensions)

Determines equals.

public bool Equals(BlockDimensions other)

Parameters

other BlockDimensions

The other.

Returns

bool

The result of the operation.

Equals(object?)

Determines equals.

public override bool Equals(object? obj)

Parameters

obj object

The obj.

Returns

bool

The result of the operation.

GetHashCode()

Gets the hash code.

public override int GetHashCode()

Returns

int

The hash code.

Operators

operator ==(BlockDimensions, BlockDimensions)

Implements the equality operator to determine whether two values are equal.

public static bool operator ==(BlockDimensions left, BlockDimensions right)

Parameters

left BlockDimensions
right BlockDimensions

Returns

bool

operator !=(BlockDimensions, BlockDimensions)

Implements the inequality operator to determine whether two values are not equal.

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

Parameters

left BlockDimensions
right BlockDimensions

Returns

bool