---
title: "temporaryState(with:bufferSize:)"
framework: metalperformanceshaders
role: symbol
role_heading: Type Method
path: "metalperformanceshaders/mpsstate/temporarystate(with:buffersize:)"
---

# temporaryState(with:bufferSize:)

## Declaration

```swift
class func temporaryState(with cmdBuf: any MTLCommandBuffer, bufferSize: Int) -> Self
```
