Function createTextureFromImages

  • Load images and create a texture from them, optionally generating mip levels

    Assumes all the urls reference images of the same size.

    Example:

    const texture = await createTextureFromImage(
    device,
    [
    'https://someimage1.url',
    'https://someimage2.url',
    ],
    {
    mips: true,
    flipY: true,
    },
    );

    Parameters

    Returns Promise<GPUTexture>

Generated using TypeDoc