Back to Filament

build

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

1.75.0907 B
Original Source

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

build

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

Creates a new Texture instance.

Return

A newly created Texture

Parameters

main

engineThe Engine to associate this Texture with.

Throws

IllegalStateExceptionif a parameter to a builder function was invalid. A mode detailed message about the error is output in the system log.
RuntimeExceptionif a runtime error occurred, such as running out of memory or other resources.