<!--
{
  "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

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

A draw call command.

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

An indexed draw call command.

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

A draw call command for tessellated patches.

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

An indexed draw call command for tessellated patches.

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

A compute command using a grid aligned to threadgroup boundaries.

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

A compute command using an arbitrarily sized grid.



---

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)