Back to Filament

build

docs/android/dokka/filament-android/com.google.android.filament/-vertex-buffer/-builder/build.md

1.75.0898 B
Original Source

//filament-android/com.google.android.filament/VertexBuffer/Builder/build

build

[main]
open fun build(engine: Engine): VertexBuffer

Creates the VertexBuffer object and returns a pointer to it.

Return

the newly created VertexBuffer object

Parameters

main

enginereference to the Engine to associate this VertexBufferwith

Throws

IllegalStateExceptionif the VertexBuffer could not be created
RuntimeExceptionif a runtime error occurred, such as running out of memory or other resources.