MetalCommandQueue
Models & Types · AiDotNet.Tensors.Engines.DirectGpu.Metal
No summary documentation available yet.
Implements: IDisposable
Constructors
| Constructor | Summary |
|---|---|
MetalCommandQueue(MetalDevice device, int maxPooledBuffers) |
|
MetalCommandQueue(MetalDevice device, ulong maxCommandBufferCount, int maxPooledBuffers) |
Properties
| Property | Summary |
|---|---|
IntPtr Handle { get; } |
|
MetalDevice Device { get; } |
|
bool IsValid { get; } |
|
int ActiveBufferCount { get; } |
|
int PooledBufferCount { get; } |
Methods
| Method | Summary |
|---|---|
IntPtr CreateBlitEncoder(IntPtr commandBuffer) |
|
IntPtr CreateCommandBuffer() |
|
IntPtr CreateCommandBufferUnretained() |
|
IntPtr CreateComputeEncoder(IntPtr commandBuffer) |
|
MTLCommandBufferStatus GetStatus(IntPtr commandBuffer) |
|
ValueTuple<MTLSize, MTLSize> CalculateThreadgroupSize(IntPtr pipelineState, int workSize) |
|
ValueTuple<MTLSize, MTLSize> CalculateThreadgroupSize2D(IntPtr pipelineState, int width, int height) |
|
string GetError(IntPtr commandBuffer) |
|
string ToString() |
|
void Commit(IntPtr commandBuffer) |
|
void CopyBuffer(IntPtr encoder, IntPtr sourceBuffer, ulong sourceOffset, IntPtr destBuffer, ulong destOffset, ulong size) |
|
void DispatchThreadgroups(IntPtr encoder, MTLSize threadgroups, MTLSize threadsPerThreadgroup) |
|
void DispatchThreads(IntPtr encoder, MTLSize threads, MTLSize threadsPerThreadgroup) |
|
void Dispose() |
|
void EndEncoding(IntPtr encoder) |
|
void ExecuteSync(IntPtr pipelineState, Action<IntPtr> setupAction, MTLSize threadgroups, MTLSize threadsPerThreadgroup) |
|
void MemoryBarrier(IntPtr encoder, MTLBarrierScope scope) |
|
void SetBuffer(IntPtr encoder, IntPtr buffer, ulong offset, ulong index) |
|
void SetBytes(IntPtr encoder, IntPtr bytes, ulong length, ulong index) |
|
void SetBytes(IntPtr encoder, T value, ulong index) |
|
void SetPipelineState(IntPtr encoder, IntPtr pipelineState) |
|
void SetThreadgroupMemoryLength(IntPtr encoder, ulong length, ulong index) |
|
void WaitUntilCompleted(IntPtr commandBuffer) |
|
void WaitUntilScheduled(IntPtr commandBuffer) |