---
title: MTL4CommitFeedbackHandler
framework: metal
role: symbol
role_heading: Type Alias
path: metal/mtl4commitfeedbackhandler
---

# MTL4CommitFeedbackHandler

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

## Declaration

```swift
typealias MTL4CommitFeedbackHandler = @Sendable (any MTL4CommitFeedback) -> Void
```

## Parameters

- `commitFeedback`: A commit feedback instance containing information about the workload.

## Discussion

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

- [MTL4CommandQueue](metal/mtl4commandqueue.md)
- [MTL4CommandQueueDescriptor](metal/mtl4commandqueuedescriptor.md)
- [MTL4CommandQueueError](metal/mtl4commandqueueerror-swift.struct.md)
- [MTL4CommandQueueError.Code](metal/mtl4commandqueueerror-swift.struct/code.md)
- [MTL4CommandQueueErrorDomain](metal/mtl4commandqueueerrordomain.md)
- [MTL4CommandBuffer](metal/mtl4commandbuffer.md)
- [MTL4CommandBufferOptions](metal/mtl4commandbufferoptions.md)
- [MTL4CommandEncoder](metal/mtl4commandencoder.md)
- [MTL4RenderEncoderOptions](metal/mtl4renderencoderoptions.md)
- [MTL4ArgumentTable](metal/mtl4argumenttable.md)
- [MTL4ArgumentTableDescriptor](metal/mtl4argumenttabledescriptor.md)
- [MTL4CommandAllocator](metal/mtl4commandallocator.md)
- [MTL4CommandAllocatorDescriptor](metal/mtl4commandallocatordescriptor.md)
- [MTL4CommitOptions](metal/mtl4commitoptions.md)
- [MTL4CommitFeedback](metal/mtl4commitfeedback.md)
