drawIndexedInstances

expect abstract fun drawIndexedInstances(    shader: Shader,     indexBuffer: IndexBuffer,     vertexBuffers: List<VertexBuffer>,     instanceAttributes: List<VertexBuffer>,     drawPrimitive: DrawPrimitive,     indexOffset: Int,     indexCount: Int,     instanceOffset: Int,     instanceCount: Int,     verticesPerPatch: Int = 0)(source)

Renders instances of geometry using indexed drawing.

Parameters

shader

The shader program used to render the instances.

indexBuffer

The index buffer containing the indices of the vertices to be used for drawing.

vertexBuffers

A list of vertex buffers providing vertex attributes for the geometry.

instanceAttributes

A list of vertex buffers providing attributes specific to each instance.

drawPrimitive

The type of primitive to be drawn (e.g., triangles, lines, or patches).

indexOffset

The starting offset in the index buffer for drawing.

indexCount

The number of indices to be read from the index buffer for drawing.

instanceOffset

The starting offset for the instance data.

instanceCount

The number of instances to be drawn.

verticesPerPatch

The number of vertices per patch, applicable if using patch-based primitives.

actual abstract fun drawIndexedInstances(    shader: Shader,     indexBuffer: IndexBuffer,     vertexBuffers: List<VertexBuffer>,     instanceAttributes: List<VertexBuffer>,     drawPrimitive: DrawPrimitive,     indexOffset: Int,     indexCount: Int,     instanceOffset: Int,     instanceCount: Int,     verticesPerPatch: Int)(source)
actual abstract fun drawIndexedInstances(    shader: Shader,     indexBuffer: IndexBuffer,     vertexBuffers: List<VertexBuffer>,     instanceAttributes: List<VertexBuffer>,     drawPrimitive: DrawPrimitive,     indexOffset: Int,     indexCount: Int,     instanceOffset: Int,     instanceCount: Int,     verticesPerPatch: Int)(source)