Is your feature request related to a problem? Please describe.
It is necessary to add a capability of sharing Device fence synchronization between gecko. See Bug 1910520.
Metal provides MTLSharedEvent to do it. MTLSharedEvent is supported on macOS 10.14+ and iOS 12.0+.
Similar capability is already added on Windows by #4872. It uses ID3D12Fence for synchronization.
Describe the solution you'd like
MTLSharedEvents can be got from the Device fence like
Is your feature request related to a problem? Please describe.
It is necessary to add a capability of sharing Device fence synchronization between gecko. See Bug 1910520. Metal provides MTLSharedEvent to do it. MTLSharedEvent is supported on macOS 10.14+ and iOS 12.0+.
Similar capability is already added on Windows by #4872. It uses ID3D12Fence for synchronization.
Describe the solution you'd like
MTLSharedEvents can be got from the Device fence like
MTLSharedEvent could be added to Fence like.
MTLSharedEvent could be created in Fence like
Describe alternatives you've considered
Necessary api to wgpu-core is already added by #4872. Modifying wgpu-hal metal source could address the problem.
Additional context
Device fence sharing with metal on macOS in gecko is tracked in Bug 1910520.