Back to Filament

depth

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

1.75.0673 B
Original Source

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

depth

[main]
open fun depth(depth: Int): Texture.Builder

Specifies the texture's number of layers. Values greater than 1 create a 3D texture.

This Texture instance must use SAMPLER_2D_ARRAY or it has no effect.

Return

This Builder, for chaining calls.

Parameters

main

depthtexture number of layers. Default is 1.