ScopedComputeEncoder

Structs · AiDotNet.Tensors.Engines.DirectGpu.Metal

No summary documentation available yet.

Inheritance: ValueType → ScopedComputeEncoder

Implements: IDisposable

Properties

Property Summary
IntPtr CommandBuffer { get; }
IntPtr Handle { get; }
bool IsValid { get; }

Methods

Method Summary
void DispatchThreadgroups(MTLSize threadgroups, MTLSize threadsPerThreadgroup)
void DispatchThreads(MTLSize threads, MTLSize threadsPerThreadgroup)
void Dispose()
void MemoryBarrier(MTLBarrierScope scope)
void SetBuffer(IntPtr buffer, ulong offset, ulong index)
void SetBuffer(MetalGpuBuffer buffer, int index)
void SetBytes(T value, ulong index)
void SetPipelineState(IntPtr pipelineState)
void SetThreadgroupMemoryLength(uint length, uint index)