---
title: MPSTemporaryVector
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpstemporaryvector
---

# MPSTemporaryVector

A vector allocated on GPU private memory.

## Declaration

```swift
class MPSTemporaryVector
```

## Topics

### Initializers

- [init(commandBuffer:descriptor:)](metalperformanceshaders/mpstemporaryvector/init(commandbuffer:descriptor:).md)

### Instance Properties

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

### Type Methods

- [prefetchStorage(with:descriptorList:)](metalperformanceshaders/mpstemporaryvector/prefetchstorage(with:descriptorlist:).md)

## Relationships

### Inherits From

- [MPSVector](metalperformanceshaders/mpsvector.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

### Vectors

- [MPSVector](metalperformanceshaders/mpsvector.md)
- [MPSVectorDescriptor](metalperformanceshaders/mpsvectordescriptor.md)
