<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLIndirectCommandType",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@E@MTLIndirectCommandType"
  },
  "title" : "MTLIndirectCommandType"
}
-->

# MTLIndirectCommandType

The types of commands that you can encode into the indirect command buffer.

```
struct MTLIndirectCommandType
```

## Topics

### Creating a set of command types

[`init(rawValue:)`](/documentation/Metal/MTLIndirectCommandType/init(rawValue:))

Initializes the set of command types from a raw integer value.

### Specifying command types

[`MTLIndirectCommandTypeDraw`](/documentation/Metal/MTLIndirectCommandType/draw)

A draw call command.

[`MTLIndirectCommandTypeDrawIndexed`](/documentation/Metal/MTLIndirectCommandType/drawIndexed)

An indexed draw call command.

[`MTLIndirectCommandTypeDrawPatches`](/documentation/Metal/MTLIndirectCommandType/drawPatches)

A draw call command for tessellated patches.

[`MTLIndirectCommandTypeDrawIndexedPatches`](/documentation/Metal/MTLIndirectCommandType/drawIndexedPatches)

An indexed draw call command for tessellated patches.

[`MTLIndirectCommandTypeConcurrentDispatch`](/documentation/Metal/MTLIndirectCommandType/concurrentDispatch)

A compute command using a grid aligned to threadgroup boundaries.

[`MTLIndirectCommandTypeConcurrentDispatchThreads`](/documentation/Metal/MTLIndirectCommandType/concurrentDispatchThreads)

A compute command using an arbitrarily sized grid.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`OptionSet`](/documentation/Swift/OptionSet)

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)