Encodes a command that signals the given event, updating it to a new value.
- iOS 12.0+
- macOS 10.14+
- Mac Catalyst 13.0+
- tvOS 12.0+
The event you want to signal.
The new value for the event.
You can't encode a signal event if the command buffer has an active command encoder.
Metal signals the event after all commands scheduled prior to this command have finished executing. If the new event value is greater than the event's current value, Metal updates the event's value to the new value. Commands waiting on the event are allowed to run if the new value is equal to or greater than the value for which they are waiting. For shared events, this update similarly triggers notification handlers waiting on the event.