An object you use to synchronize access to Metal resources across multiple CPUs, GPUs, and processes.
- iOS 12.0+
- macOS 10.14+
- Mac Catalyst 13.0+
- tvOS 12.0+
MTLShared protocol inherits from and adds additional behaviors to
MTLEvent. Use shared events only when you need to synchronize changes to resources across multiple Metal device objects, across processes, or between a device object and CPU access to resources. Otherwise, use nonshared events.
To pass this event to another process, first create a handle to the shared event by calling its
new method. Then, transfer the handle to another process via XPC, and from that process, call the
new of a
For more information, see Synchronizing Events Across Multiple Devices and Encode Synchronization Events Between a GPU and the CPU.