createDynamicVertexBuffer

expect abstract fun createDynamicVertexBuffer(format: VertexFormat, vertexCount: Int, session: Session? = Session.active): VertexBuffer(source)

Creates a dynamic vertex buffer with the specified format and vertex count.

Return

A dynamic vertex buffer initialized with the specified format and vertex count.

Parameters

format

The vertex format that defines the layout and attributes of the vertices in the buffer.

vertexCount

The number of vertices the buffer will hold.

session

The session to associate with the buffer. Defaults to the currently active session if not specified.

actual abstract fun createDynamicVertexBuffer(format: VertexFormat, vertexCount: Int, session: Session?): VertexBuffer(source)
actual abstract fun createDynamicVertexBuffer(format: VertexFormat, vertexCount: Int, session: Session?): VertexBuffer(source)