Back to Filament

UboBatchingMode

docs/android/dokka/filament-android/com.google.android.filament/-material/-ubo-batching-mode/index.md

1.75.01.5 KB
Original Source

//filament-android/com.google.android.filament/Material/UboBatchingMode

UboBatchingMode

[main]
enum UboBatchingMode

Defines whether a material instance should use UBO batching or not.

Entries

DEFAULT[main]
DEFAULT
For default, it follows the engine settings. If UBO batching is enabled on the engine and the material domain is SURFACE, it turns on the UBO batching. Otherwise, it turns off the UBO batching.
DISABLED[main]
DISABLED
Disable the Ubo Batching for this material

Functions

NameSummary
valueOf[main]
open fun valueOf(name: String): Material.UboBatchingMode
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
values[main]
open fun values(): Array<Material.UboBatchingMode>
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.