IMTLCommandBuffer Interface

Definition

Protocol for commands that are run on a GPU

[Foundation.Protocol(Name="MTLCommandBuffer", WrapperType=typeof(Metal.MTLCommandBufferWrapper))]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public interface IMTLCommandBuffer : IDisposable, ObjCRuntime.INativeObject
type IMTLCommandBuffer = interface
    interface INativeObject
    interface IDisposable
Attributes
Implements

Properties

BlitCommandEncoder
CommandQueue
ComputeCommandEncoder
Device
Error
Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)
Label
RetainedReferences
Status

Methods

AddCompletedHandler(Action<IMTLCommandBuffer>)
AddScheduledHandler(Action<IMTLCommandBuffer>)
Commit()
CreateParallelRenderCommandEncoder(MTLRenderPassDescriptor)
CreateRenderCommandEncoder(MTLRenderPassDescriptor)
Enqueue()
PresentDrawable(IMTLDrawable, Double)
PresentDrawable(IMTLDrawable)
WaitUntilCompleted()
WaitUntilScheduled()

Extension Methods

ComputeCommandEncoderDispatch(IMTLCommandBuffer, MTLDispatchType)
EncodeSignal(IMTLCommandBuffer, IMTLEvent, UInt64)
EncodeWait(IMTLCommandBuffer, IMTLEvent, UInt64)
GetGpuEndTime(IMTLCommandBuffer)

Returns the time, in seconds, when the GPU stopped running the command buffer.

GetGpuStartTime(IMTLCommandBuffer)

Returns the time, in seconds, when the GPU started running the command buffer.

GetKernelEndTime(IMTLCommandBuffer)

Returns the time, in seconds, when the GPU finished scheduling the command buffer.

GetKernelStartTime(IMTLCommandBuffer)

Returns the time, in seconds, when the GPU started scheduling the command buffer.

PopDebugGroup(IMTLCommandBuffer)
PresentDrawableAfter(IMTLCommandBuffer, IMTLDrawable, Double)

Presents the specified drawable after the previous drawable has been displayed for duration seconds.

PushDebugGroup(IMTLCommandBuffer, String)

Applies to