Load an image and create a texture from it, optionally generating mip levels
Example:
const texture = await createTextureFromImage(device, 'https://someimage.url', { mips: true, flipY: true,}); Copy
const texture = await createTextureFromImage(device, 'https://someimage.url', { mips: true, flipY: true,});
Generated using TypeDoc
Load an image and create a texture from it, optionally generating mip levels
Example: