Interface TextureArrayFromUrlsOptions
interface TextureArrayFromUrlsOptions {
addressModeU?: GPUAddressMode;
addressModeV?: GPUAddressMode;
format?: GPUTextureFormat;
invertY?: boolean;
magFilter?: GPUFilterMode;
minFilter?: GPUFilterMode;
mipMaps?: boolean;
premultiplyAlpha?: boolean;
srgb?: boolean;
}
addressModeU?: GPUAddressMode;
addressModeV?: GPUAddressMode;
format?: GPUTextureFormat;
invertY?: boolean;
magFilter?: GPUFilterMode;
minFilter?: GPUFilterMode;
mipMaps?: boolean;
premultiplyAlpha?: boolean;
srgb?: boolean;
}
Hierarchy (View Summary)
- TextureArrayOptions
- ArrayLayerUploadOptions
- TextureArrayFromUrlsOptions
Index
Properties
Optionaladdress Mode U
addressModeU?: GPUAddressMode
Address mode U. Default 'repeat'.
Optionaladdress Mode V
addressModeV?: GPUAddressMode
Address mode V. Default 'repeat'.
Optionalformat
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.
Optionalinvert Y
invertY?: boolean
Flip Y during upload. Default true (matches Babylon.js convention).
Optionalmag Filter
magFilter?: GPUFilterMode
Mag filter. Default 'linear'.
Optionalmin Filter
minFilter?: GPUFilterMode
Min filter. Default 'linear'.
Optionalmip Maps
mipMaps?: boolean
Generate a full mip chain for each layer on upload. Default true.
Optionalpremultiply Alpha
premultiplyAlpha?: boolean
Treat the destination as premultiplied-alpha. Default false (straight RGBA).
Optionalsrgb
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.
Sampler, format and per-layer upload options for
createTexture2DArrayFromUrls().