---
title: "signalDrawable(_:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtl4commandqueue/signaldrawable(_:)"
---

# signalDrawable(_:)

Schedules a signal operation on the command queue to indicate when rendering to a Metal drawable is complete.

## Declaration

```swift
func signalDrawable(_ drawable: any MTLDrawable)
```

## Parameters

- `drawable`: doc://com.apple.metal/documentation/Metal/MTLDrawable instance to signal.

## Discussion

Discussion Signaling when rendering to a MTLDrawable instance is complete indicates that it’s safe to present it to the display. You are responsible for calling this method after committing all command buffers that contain commands targeting this drawable, and before calling present(), present(at:), or present(afterMinimumDuration:). note: This method doesn’t trigger the presentation of the drawable, and fails if you call it after any of the present methods, or if you call it multiple times. Metal doesn’t guarantee that command buffers you commit to the command queue after calling this method execute before presentation.
