Interface ExternalImageTexture2DOptions
addressModeU?: GPUAddressMode;
addressModeV?: GPUAddressMode;
invertY?: boolean;
magFilter?: GPUFilterMode;
maxDimension?: number;
minFilter?: GPUFilterMode;
mipMaps?: boolean;
premultiplyAlpha?: boolean;
srgb?: boolean;
}
Hierarchy (View Summary)
- Texture2DOptions
- ExternalImageTexture2DOptions
Index
Properties
Optionaladdress Mode U
Address mode U. Default 'repeat'.
Optionaladdress Mode V
Address mode V. Default 'repeat'.
Optionalinvert Y
Flip Y axis during upload. Default true (matches Babylon.js convention).
Optionalmag Filter
Mag filter. Default 'linear'.
Optionalmax Dimension
Downscale when the larger source dimension exceeds this positive integer. Aspect ratio is preserved and smaller sources are never enlarged.
Optionalmin Filter
Min filter. Default 'linear'.
Optionalmip Maps
Generate mipmaps. Default true.
Optionalpremultiply Alpha
Premultiply alpha at decode time. Default false (straight RGBA, matches PNG-on-disk).
Set true for sprite atlases that will be rendered with a premultiplied blend pipeline
(srcFactor: ONE); doing so produces mathematically correct soft edges and stacked
translucency.
Optionalsrgb
Use sRGB format (rgba8unorm-srgb). Enables hardware sRGB→linear on sample. Use for color/albedo textures in PBR workflows. Default false.
Sampler, format, upload, and downscaling options for createTexture2DFromExternalImage.