Type Alias: ImageSourceLike
ts
type ImageSourceLike = HTMLImageElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas;Experimental
Anything texImage2D accepts, with its pixel size. WebGL ignores the flip / premultiply pixel-store flags for ImageBitmap, so create bitmaps with imageOrientation: 'flipY' and premultiplyAlpha: 'premultiply'.