---
title: makeSharedEvent()
framework: metal
role: symbol
role_heading: Instance Method
path: metal/mtldevice/makesharedevent()
---

# makeSharedEvent()

Creates a new shared event instance that you can use to synchronize commands and resources across different GPU devices.

## Declaration

```swift
func makeSharedEvent() -> (any MTLSharedEvent)?
```

## See Also

### Creating fences and events

- [makeFence()](metal/mtldevice/makefence().md)
- [makeEvent()](metal/mtldevice/makeevent().md)
- [makeSharedEvent(handle:)](metal/mtldevice/makesharedevent(handle:).md)
