API

Interface ICreateTexture2DArrayFromImageUrlsOptions

Options controlling the creation of a 2D array texture from a list of image urls.

interface ICreateTexture2DArrayFromImageUrlsOptions {
    generateMipMaps?: boolean;
    imageBitmapOptions?: ImageBitmapOptions;
    invertY?: boolean;
    premultiplyAlpha?: boolean;
    samplingMode?: number;
    textureType?: number;
}

Hierarchy (View Summary)

Index
generateMipMaps?: boolean

Defines if mip levels should be generated (true by default)

imageBitmapOptions?: ImageBitmapOptions

Options forwarded to createImageBitmap when decoding each url

invertY?: boolean

Defines if the source must be stored with the Y axis inverted (false by default)

premultiplyAlpha?: boolean

Defines if the source alpha must be premultiplied (false by default)

samplingMode?: number

Defines the sampling mode to use (Texture.TRILINEAR_SAMPLINGMODE by default)

textureType?: number

Defines the texture type (Constants.TEXTURETYPE_UNSIGNED_BYTE by default)