MTL4CommitFeedbackHandler
Defines the block signature for a callback Metal invokes to provide your app feedback after completing a workload.
Declaration
typealias MTL4CommitFeedbackHandler = @Sendable (any MTL4CommitFeedback) -> VoidParameters
- commitFeedback:
A commit feedback instance containing information about the workload.
Discussion
You register a commit feedback block with Metal by providing an instance of MTL4CommitOptions to the command queue’s commit method, commit:count:options:. The commit options instance references your commit feedback handler after you add it via its addFeedbackHandler(_:) method.
See Also
Submitting work to a GPU with Metal 4
MTL4CommandQueueMTL4CommandQueueDescriptorMTL4CommandQueueErrorMTL4CommandQueueError.CodeMTL4CommandQueueErrorDomainMTL4CommandBufferMTL4CommandBufferOptionsMTL4CommandEncoderMTL4RenderEncoderOptionsMTL4ArgumentTableMTL4ArgumentTableDescriptorMTL4CommandAllocatorMTL4CommandAllocatorDescriptorMTL4CommitOptionsMTL4CommitFeedback