<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTL4CommitFeedbackHandler",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@T@MTL4CommitFeedbackHandler"
  },
  "title" : "MTL4CommitFeedbackHandler"
}
-->

# MTL4CommitFeedbackHandler

Defines the block signature for a callback Metal invokes to provide your app feedback after completing a workload.

```
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`](/documentation/Metal/MTL4CommitOptions) to
the command queue’s commit method, [`commit:count:options:`](/documentation/Metal/MTL4CommandQueue/commit:count:options:). The commit options instance
references your commit feedback handler after you add it via its [`addFeedbackHandler(_:)`](/documentation/Metal/MTL4CommitOptions/addFeedbackHandler(_:))
method.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)