drawInstances

expect abstract fun drawInstances(    shader: Shader,     vertexBuffers: List<VertexBuffer>,     instanceAttributes: List<VertexBuffer>,     drawPrimitive: DrawPrimitive,     vertexOffset: Int,     vertexCount: Int,     instanceOffset: Int,     instanceCount: Int,     verticesPerPatch: Int = 0)(source)

Renders multiple instances of a set of primitives using the provided shader and vertex data.

Parameters

shader

The Shader object used to render the instances.

vertexBuffers

A list of VertexBuffer objects containing vertex data for the primitives.

instanceAttributes

A list of VertexBuffer objects containing per-instance attributes.

drawPrimitive

The type of primitive to draw (e.g., triangles, lines, etc.).

vertexOffset

The offset into the vertex buffer to start drawing.

vertexCount

The number of vertices to draw.

instanceOffset

The offset into the instance buffer to start rendering instances.

instanceCount

The number of instances to render.

verticesPerPatch

The number of vertices per patch, used for tessellation. Defaults to 0.

actual abstract fun drawInstances(    shader: Shader,     vertexBuffers: List<VertexBuffer>,     instanceAttributes: List<VertexBuffer>,     drawPrimitive: DrawPrimitive,     vertexOffset: Int,     vertexCount: Int,     instanceOffset: Int,     instanceCount: Int,     verticesPerPatch: Int)(source)
actual abstract fun drawInstances(    shader: Shader,     vertexBuffers: List<VertexBuffer>,     instanceAttributes: List<VertexBuffer>,     drawPrimitive: DrawPrimitive,     vertexOffset: Int,     vertexCount: Int,     instanceOffset: Int,     instanceCount: Int,     verticesPerPatch: Int)(source)