indirectBuffer must be created with GpuBuffer.UsageFlags.IndirectDrawArguments
and have an element size of 12 bytes.
indirectElementOffset is an element index into indirectBuffer, not a byte offset.
When called outside a graphics context, the dispatch runs immediately. When called inside a graphics context, the dispatch runs async.
| Name | Type | Description |
|---|---|---|
| indirectBuffer | GpuBuffer | The GPU buffer containing one or more dispatch argument entries. |
| indirectElementOffset = 0 | System.UInt32 | The index of the dispatch arguments element to use (each element = 12 bytes). |