Table of Contents

Class NDRange

Namespace
DotCompute.Backends.OpenCL.Execution
Assembly
DotCompute.Backends.OpenCL.dll

Represents an N-dimensional range for kernel execution.

public sealed record NDRange : IEquatable<NDRange>
Inheritance
NDRange
Implements
Inherited Members

Properties

Dimensions

Gets the number of active dimensions (1, 2, or 3).

public int Dimensions { get; }

Property Value

int

TotalWorkItems

Gets the total number of work items across all dimensions.

public nuint TotalWorkItems { get; }

Property Value

nuint

X

Gets or initializes the X dimension size.

public required nuint X { get; init; }

Property Value

nuint

Y

Gets or initializes the Y dimension size (default: 1).

public nuint Y { get; init; }

Property Value

nuint

Z

Gets or initializes the Z dimension size (default: 1).

public nuint Z { get; init; }

Property Value

nuint