---
title: MPSTemporaryMatrix
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpstemporarymatrix
---

# MPSTemporaryMatrix

A matrix allocated on GPU private memory.

## Declaration

```swift
class MPSTemporaryMatrix
```

## Topics

### Initializers

- [init(commandBuffer:matrixDescriptor:)](metalperformanceshaders/mpstemporarymatrix/init(commandbuffer:matrixdescriptor:).md)

### Instance Properties

- [readCount](metalperformanceshaders/mpstemporarymatrix/readcount.md)

### Type Methods

- [prefetchStorage(with:matrixDescriptorList:)](metalperformanceshaders/mpstemporarymatrix/prefetchstorage(with:matrixdescriptorlist:).md)

## Relationships

### Inherits From

- [MPSMatrix](metalperformanceshaders/mpsmatrix.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Matrices

- [MPSMatrix](metalperformanceshaders/mpsmatrix.md)
- [MPSMatrixDescriptor](metalperformanceshaders/mpsmatrixdescriptor.md)
