indexedCommand

fun indexedCommand(vertexCount: UInt, instanceCount: UInt, baseVertex: Int = 0, firstIndex: UInt, baseInstance: UInt): IndexedCommand(source)

Creates an indexed command for processing or executing multi-instance rendering commands efficiently.

Return

An instance of IndexedCommand containing the specified rendering parameters.

Parameters

vertexCount

The total number of vertices to be processed.

instanceCount

The number of instances for instanced rendering. Defaults to 1.

baseVertex

The base offset for vertex fetching. Defaults to 0.

firstIndex

The starting index within the index buffer.

baseInstance

The base instance ID used for instanced rendering. Defaults to 0.