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
TotalWorkItems
Gets the total number of work items across all dimensions.
public nuint TotalWorkItems { get; }
Property Value
X
Gets or initializes the X dimension size.
public required nuint X { get; init; }
Property Value
Y
Gets or initializes the Y dimension size (default: 1).
public nuint Y { get; init; }
Property Value
Z
Gets or initializes the Z dimension size (default: 1).
public nuint Z { get; init; }