---
title: "signalEvent(_:value:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtliocommandbuffer/signalevent(_:value:)"
---

# signalEvent(_:value:)

Encodes a command that signals a shared event to other parts of your app.

## Declaration

```swift
func signalEvent(_ event: any MTLSharedEvent, value: UInt64)
```

## Parameters

- `event`: A shared event instance the method waits for.
- `value`: A value the command uses to signal for the event to other parts of your app.

## See Also

### Synchronizing a command buffer

- [waitForEvent(_:value:)](metal/mtliocommandbuffer/waitforevent(_:value:).md)
