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

# temporaryState(with:textureDescriptor:)

## Declaration

```swift
class func temporaryState(with cmdBuf: any MTLCommandBuffer, textureDescriptor descriptor: MTLTextureDescriptor) -> Self
```
