Table of Contents

Class MetalStreamHandle

Namespace
DotCompute.Backends.Metal.Execution.Types
Assembly
DotCompute.Backends.Metal.dll

Handle for managed Metal streams with automatic cleanup and resource management.

public sealed class MetalStreamHandle : IDisposable
Inheritance
MetalStreamHandle
Implements
Inherited Members
Extension Methods

Constructors

MetalStreamHandle(StreamId, nint, Action<StreamId>?)

public MetalStreamHandle(StreamId streamId, nint commandQueue, Action<StreamId>? onDispose = null)

Parameters

streamId StreamId
commandQueue nint
onDispose Action<StreamId>

Properties

CommandQueue

public nint CommandQueue { get; }

Property Value

nint

StreamId

public StreamId StreamId { get; }

Property Value

StreamId

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()