編集

次の方法で共有


MTLCommandBuffer_Extensions Class

Definition

Extension methods to the IMTLCommandBuffer interface to support all the methods from the IMTLCommandBuffer protocol.

public static class MTLCommandBuffer_Extensions
type MTLCommandBuffer_Extensions = class
Inheritance
MTLCommandBuffer_Extensions

Remarks

The extension methods for IMTLCommandBuffer allow developers to treat instances of the interface as having all the optional methods of the original IMTLCommandBuffer protocol. Since the interface only contains the required members, these extension methods allow developers to call the optional members of the protocol.

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