Modifier

Partager via


MTLComputeCommandEncoder_Extensions Class

Definition

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

public static class MTLComputeCommandEncoder_Extensions
type MTLComputeCommandEncoder_Extensions = class
Inheritance
MTLComputeCommandEncoder_Extensions

Remarks

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

Methods

DispatchThreadgroups(IMTLComputeCommandEncoder, IMTLBuffer, nuint, MTLSize)
DispatchThreads(IMTLComputeCommandEncoder, MTLSize, MTLSize)
GetDispatchType(IMTLComputeCommandEncoder)
MemoryBarrier(IMTLComputeCommandEncoder, IMTLResource[], nuint)
MemoryBarrier(IMTLComputeCommandEncoder, MTLBarrierScope)
SetImageblock(IMTLComputeCommandEncoder, nuint, nuint)
SetStage(IMTLComputeCommandEncoder, MTLRegion)
SetStageInRegion(IMTLComputeCommandEncoder, IMTLBuffer, nuint)
Update(IMTLComputeCommandEncoder, IMTLFence)

Captures all GPU work up to the current fence.

UseHeap(IMTLComputeCommandEncoder, IMTLHeap)
UseHeaps(IMTLComputeCommandEncoder, IMTLHeap[], nuint)
UseResource(IMTLComputeCommandEncoder, IMTLResource, MTLResourceUsage)
UseResources(IMTLComputeCommandEncoder, IMTLResource[], nuint, MTLResourceUsage)
Wait(IMTLComputeCommandEncoder, IMTLFence)

Prevents additional GPU work by the encoder until the fence is reached.

Applies to