Back to Filament

generateMipmaps

docs/android/dokka/filament-android/com.google.android.filament/-texture/generate-mipmaps.md

1.75.0680 B
Original Source

//filament-android/com.google.android.filament/Texture/generateMipmaps

generateMipmaps

[main]
open fun generateMipmaps(engine: Engine)

Generates all the mipmap levels automatically. This requires the texture to have a color-renderable format.

This Texture instance must not use SAMPLER_CUBEMAP, or it has no effect.

Parameters

main

engineEngine this texture is associated to. Must be the instance passed to Builder.build().