Back to Filament

format

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

1.75.0720 B
Original Source

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

format

[main]
open fun format(format: Texture.InternalFormat): Texture.Builder

Specifies the texture's internal format.

The internal format specifies how texels are stored (which may be different from how they're specified in setImage). InternalFormat specifies both the color components and the data type used.

Return

This Builder, for chaining calls.

Parameters

main

formattexture's internal format.