Encodes a command to render a number of instances of tessellated patches.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
The number of control points per patch. This value must be between
The patch start index.
The number of patches in each instance.
A buffer that contains indices to patches.
The byte offset within
patchto start reading indices from.
The number of instances to draw.
The first instance to draw.
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.