createDynamicIndexBuffer

expect abstract fun createDynamicIndexBuffer(elementCount: Int, type: IndexType, session: Session? = Session.active): IndexBuffer(source)

Creates a dynamic index buffer with the specified number of elements and index type, optionally associated with a session.

Return

An instance of IndexBuffer representing the created dynamic index buffer.

Parameters

elementCount

The number of indices to be stored in the buffer.

type

The data type of the indices in the buffer (e.g., unsigned short, unsigned int).

session

An optional session to associate the buffer with. Defaults to the currently active session if not provided.

actual abstract fun createDynamicIndexBuffer(elementCount: Int, type: IndexType, session: Session?): IndexBuffer(source)
actual abstract fun createDynamicIndexBuffer(elementCount: Int, type: IndexType, session: Session?): IndexBuffer(source)