---
title: MTL4CommandQueueError.Code
framework: metal
role: symbol
role_heading: Enumeration
path: metal/mtl4commandqueueerror-swift.struct/code
---

# MTL4CommandQueueError.Code

Enumeration of kinds of errors that committing an array of command buffers instances can produce.

## Declaration

```swift
enum Code
```

## Topics

### Enumeration Cases

- [MTL4CommandQueueError.Code.accessRevoked](metal/mtl4commandqueueerror-swift.struct/code/accessrevoked.md)
- [MTL4CommandQueueError.Code.deviceRemoved](metal/mtl4commandqueueerror-swift.struct/code/deviceremoved.md)
- [MTL4CommandQueueError.Code.internal](metal/mtl4commandqueueerror-swift.struct/code/internal.md)
- [MTL4CommandQueueError.Code.none](metal/mtl4commandqueueerror-swift.struct/code/none.md)
- [MTL4CommandQueueError.Code.notPermitted](metal/mtl4commandqueueerror-swift.struct/code/notpermitted.md)
- [MTL4CommandQueueError.Code.outOfMemory](metal/mtl4commandqueueerror-swift.struct/code/outofmemory.md)
- [MTL4CommandQueueError.Code.timeout](metal/mtl4commandqueueerror-swift.struct/code/timeout.md)

### Initializers

- [init(rawValue:)](metal/mtl4commandqueueerror-swift.struct/code/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Submitting work to a GPU with Metal 4

- [MTL4CommandQueue](metal/mtl4commandqueue.md)
- [MTL4CommandQueueDescriptor](metal/mtl4commandqueuedescriptor.md)
- [MTL4CommandQueueError](metal/mtl4commandqueueerror-swift.struct.md)
- [MTL4CommandQueueErrorDomain](metal/mtl4commandqueueerrordomain.md)
- [MTL4CommandBuffer](metal/mtl4commandbuffer.md)
- [MTL4CommandBufferOptions](metal/mtl4commandbufferoptions.md)
- [MTL4CommandEncoder](metal/mtl4commandencoder.md)
- [MTL4RenderEncoderOptions](metal/mtl4renderencoderoptions.md)
- [MTL4ArgumentTable](metal/mtl4argumenttable.md)
- [MTL4ArgumentTableDescriptor](metal/mtl4argumenttabledescriptor.md)
- [MTL4CommandAllocator](metal/mtl4commandallocator.md)
- [MTL4CommandAllocatorDescriptor](metal/mtl4commandallocatordescriptor.md)
- [MTL4CommitOptions](metal/mtl4commitoptions.md)
- [MTL4CommitFeedback](metal/mtl4commitfeedback.md)
- [MTL4CommitFeedbackHandler](metal/mtl4commitfeedbackhandler.md)
