MTLCommandBufferHandler
A completion handler signature a GPU device calls when it finishes scheduling a command buffer, or when the GPU finishes running it.
Declaration
typealias MTLCommandBufferHandler = @Sendable (any MTLCommandBuffer) -> VoidParameters
- commandBuffer:
The Mtlcommandbuffer instance that’s invoking the completion handler.
Discussion
The MTLCommandBuffer type uses this signature in its methods that register your completion handlers, including addScheduledHandler(_:) and addCompletedHandler(_:).