Contents

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) -> Void

Parameters

  • 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