Back to Filament

build

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

1.75.0593 B
Original Source

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

build

[main]
open fun build(): Engine

Creates an instance of Engine

Return

A newly created Engine, or null if the GPU driver couldn't be initialized, for instance if it doesn't support the right version of OpenGL or OpenGL ES.

Throws

Errorif there isn't enough memory to allocate the command buffer.