Table of Contents

Class MetalResourceLimits

Namespace
DotCompute.Backends.Metal.Execution.Graph.Configuration
Assembly
DotCompute.Backends.Metal.dll

Defines resource limits for Metal compute graph execution.

public class MetalResourceLimits
Inheritance
MetalResourceLimits
Inherited Members

Properties

MaxBlitEncoders

Gets or sets the maximum number of active blit command encoders.

public int MaxBlitEncoders { get; set; }

Property Value

int

MaxCommandBuffers

Gets or sets the maximum number of active command buffers.

public int MaxCommandBuffers { get; set; }

Property Value

int

MaxComputeEncoders

Gets or sets the maximum number of active compute command encoders.

public int MaxComputeEncoders { get; set; }

Property Value

int

MaxGpuMemoryBytes

Gets or sets the maximum GPU memory usage in bytes.

public long MaxGpuMemoryBytes { get; set; }

Property Value

long

MaxKernelArguments

Gets or sets the maximum number of kernel arguments.

public int MaxKernelArguments { get; set; }

Property Value

int

MaxThreadgroupMemoryBytes

Gets or sets the maximum threadgroup memory usage per kernel.

public uint MaxThreadgroupMemoryBytes { get; set; }

Property Value

uint

Methods

Validate()

Validates the resource limits.

public IReadOnlyList<string> Validate()

Returns

IReadOnlyList<string>

A list of validation errors.