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

# temporaryState(with:)

## Declaration

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