API

Interface TextureArrayFromUrlsOptions

Sampler, format and per-layer upload options for createTexture2DArrayFromUrls().

interface TextureArrayFromUrlsOptions {
    addressModeU?: GPUAddressMode;
    addressModeV?: GPUAddressMode;
    format?: GPUTextureFormat;
    invertY?: boolean;
    magFilter?: GPUFilterMode;
    minFilter?: GPUFilterMode;
    mipMaps?: boolean;
    premultiplyAlpha?: boolean;
    srgb?: boolean;
}

Hierarchy (View Summary)

Index
addressModeU?: GPUAddressMode

Address mode U. Default 'repeat'.

addressModeV?: GPUAddressMode

Address mode V. Default 'repeat'.

format?: GPUTextureFormat

Texel format, for data arrays such as rgba16float tile pages. Overrides srgb. Default rgba8unorm. Image uploads need a format copyExternalImageToTexture accepts; fill other formats with updateTextureRegion or render into a layer through createTextureRenderTarget.

invertY?: boolean

Flip Y during upload. Default true (matches Babylon.js convention).

magFilter?: GPUFilterMode

Mag filter. Default 'linear'.

minFilter?: GPUFilterMode

Min filter. Default 'linear'.

mipMaps?: boolean

Generate a full mip chain for each layer on upload. Default true.

premultiplyAlpha?: boolean

Treat the destination as premultiplied-alpha. Default false (straight RGBA).

srgb?: boolean

Use sRGB format (rgba8unorm-srgb) so the hardware converts to linear on sample. Use for color/albedo layers in PBR workflows. Default false.