Function createTextureFromImage

  • 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,
    });

    Parameters

    Returns Promise<GPUTexture>

Generated using TypeDoc