• Load image file(e.g. *.jpg) from ImageBitmap, blob or HTMLImageElement. And convert the result to valid source that GPUCopyExternalImageSource supported.

    Parameters

    • test: GPUTest
    • imageName: "four-colors.jpg" | "four-colors-rotate-90-cw.jpg" | "four-colors-rotate-180-cw.jpg" | "four-colors-rotate-270-cw.jpg"
    • objectTypeFromFile: "ImageBitmap-from-Blob" | "ImageBitmap-from-Image" | "Image"

    Returns Promise<ImageBitmap | HTMLImageElement>

Generated using TypeDoc