---
title: MPSCommandBuffer
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpscommandbuffer
---

# MPSCommandBuffer

## Declaration

```swift
class MPSCommandBuffer
```

## Topics

### Initializers

- [init(commandBuffer:)](metalperformanceshaders/mpscommandbuffer/init(commandbuffer:).md)
- [init(from:)](metalperformanceshaders/mpscommandbuffer/init(from:).md)
- [init(fromCommandQueue:)](metalperformanceshaders/mpscommandbuffer/init(fromcommandqueue:).md)

### Instance Properties

- [commandBuffer](metalperformanceshaders/mpscommandbuffer/commandbuffer.md)
- [heapProvider](metalperformanceshaders/mpscommandbuffer/heapprovider.md)
- [predicate](metalperformanceshaders/mpscommandbuffer/predicate.md)
- [rootCommandBuffer](metalperformanceshaders/mpscommandbuffer/rootcommandbuffer.md)

### Instance Methods

- [commitAndContinue()](metalperformanceshaders/mpscommandbuffer/commitandcontinue().md)
- [prefetchHeap(forWorkloadSize:)](metalperformanceshaders/mpscommandbuffer/prefetchheap(forworkloadsize:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

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