Builder
Builder for creating Texture instances.
Use the Builder to construct a Texture object instance.
Functions
Creates the Texture asynchronously: callback runs once on the main thread when its memory is allocated (AsyncCallStatus.CANCELED if it never was). Until then, only async calls on it are safe; check Texture.isCreationComplete. Needs Engine.isAsynchronousModeEnabled.
Specifies the depth in texels of the texture. Doesn't need to be a power-of-two.
Creates an external texture. The content must be set using Texture.setExternalStream.
Specifies the internal format of this texture.
Specifies the height in texels of the texture. Doesn't need to be a power-of-two.
Specify a native texture to import as a Filament texture.
Specifies the number of mip map levels.
Associates an optional name with this Texture for debugging purposes.
Specifies the type of sampler to use.
Specifies the number of samples used for MSAA (Multisample Anti-Aliasing).
Specifies how a texture's channels map to color components.
Specifies if the texture will be used as a render target attachment.
Specifies the width in texels of the texture. Doesn't need to be a power-of-two.