docs/android/dokka/filament-android/com.google.android.filament/-texture/-builder/index.md
//filament-android/com.google.android.filament/Texture/Builder
[main]
open class Builder
Use Builder to construct a Texture object instance.
| Builder | [main] |
| constructor() | |
Use Builder to construct a Texture object instance. |
| Name | Summary |
|---|---|
| build | [main] |
| open fun build(engine: Engine): Texture | |
Creates a new Texture instance. | |
| depth | [main] |
| open fun depth(depth: Int): Texture.Builder | |
| Specifies the texture's number of layers. | |
| external | [main] |
| open fun external(): Texture.Builder | |
| Creates an external texture. | |
| format | [main] |
| open fun format(format: Texture.InternalFormat): Texture.Builder | |
| Specifies the texture's internal format. | |
| height | [main] |
| open fun height(height: Int): Texture.Builder | |
| Specifies the height of the texture in texels. | |
| importTexture | [main] |
| open fun importTexture(id: Long): Texture.Builder | |
| Specify a native texture to import as a Filament texture. | |
| levels | [main] |
| open fun levels(levels: Int): Texture.Builder | |
| Specifies the number of mipmap levels | |
| sampler | [main] |
| open fun sampler(target: Texture.Sampler): Texture.Builder | |
| Specifies the type of sampler to use. | |
| samples | [main] |
| open fun samples(samples: Int): Texture.Builder | |
| Specifies the number of samples for multisample anti-aliasing. | |
| swizzle | [main] |
| open fun swizzle(r: Texture.Swizzle, g: Texture.Swizzle, b: Texture.Swizzle, a: Texture.Swizzle): Texture.Builder | |
| Specifies how a texture's channels map to color components | |
| usage | [main] |
| open fun usage(flags: Int): Texture.Builder | |
| Sets the usage flags, which is necessary when attaching to RenderTarget. | |
| width | [main] |
| open fun width(width: Int): Texture.Builder | |
| Specifies the width of the texture in texels. |