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

# makeSharedEvent(handle:)

Recreates a shared event from a handle.

## Declaration

```swift
func makeSharedEvent(handle sharedEventHandle: MTLSharedEventHandle) -> (any MTLSharedEvent)?
```

## Parameters

- `sharedEventHandle`: An doc://com.apple.metal/documentation/Metal/MTLSharedEventHandle instance from another GPU device or process.

## Return Value

Return Value A new MTLSharedEvent instance if the method completed successfully; otherwise nil.

## See Also

### Creating fences and events

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