Back to Filament

build

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

1.75.01015 B
Original Source

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

build

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

Creates and returns the BufferObject object. After creation, the buffer is uninitialized. Use setBuffer to initialize the BufferObject.

Return

the newly created BufferObject object

Parameters

main

enginereference to the Engine to associate this BufferObjectwith

See also

setBuffer

Throws

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