Encodes a command to render a number of instances of primitives using vertex data in contiguous array elements, starting from a base instance.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
The type of primitives that the vertices are assembled into.
Byte offset within
indirectto start reading arguments from. Must be a multiple of 4 bytes.
The draw call arguments are read from a GPU buffer instead of being directly passed as method parameters via the CPU. Your app may avoid expensive latency costs by using indirect drawing.
When a draw command is encoded, any necessary references to rendering state or resources previously set on the encoder are recorded as part of the command. After encoding a command, you can safely change the encoding state to set up parameters needed to encode other commands.