---
title: size
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlindirectcommandbuffer/size
---

# size

The number of commands contained in the indirect command buffer.

## Declaration

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

## Discussion

Discussion You set the value of this property when you create the indirect command buffer, and afterwards it doesn’t change.
