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

# temporaryState(with:resourceList:)

## Declaration

```swift
class func temporaryState(with commandBuffer: any MTLCommandBuffer, resourceList: MPSStateResourceList) -> Self
```
