---
title: drawableID
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtldrawable/drawableid
---

# drawableID

A positive integer that identifies the drawable.

## Declaration

```swift
var drawableID: Int { get }
```

## Discussion

Discussion Drawable objects are usually owned by some other object, such as a CAMetalLayer. The owning object gives the first drawable it creates an ID of 0, and it increments the ID by 1 for each additional drawable it creates.
