MTL4CommitFeedbackHandler

Type Alias MTL4CommitFeedbackHandler 

Source
pub type MTL4CommitFeedbackHandler = *mut DynBlock<dyn Fn(NonNull<ProtocolObject<dyn MTL4CommitFeedback>>)>;
Available on crate features MTL4CommitFeedback and block2 only.
Expand description

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

You register a commit feedback block with Metal by providing an instance of MTL4CommitOptions to the command queue’s commit method, MTL4CommandQueue/commit:count:options:. The commit options instance references your commit feedback handler after you add it via its MTL4CommitOptions/addFeedbackHandler: method.

  • Parameter commitFeedback: a commit feedback instance containing information about the workload.

See also Apple’s documentation