toImageBitmap(type = "image/png", quality) {
		return new Promise((resolve) => {
			if (typeof this.canvas.transferToImageBitmap === "function") {
				resolve(this.canvas.transferToImageBitmap());
			} else {
				const image = new Image();
				image.src = this.canvas.toDataURL(type, quality);
				image.onload = () => {
					globalThis.createImageBitmap(image).then((bitmap) => {
						return resolve(bitmap);
					});
				};
			}
		});
	}
creates an ImageBitmap object from the most recently rendered image of this canvas texture
@param {string} [type="image/png"] - A string indicating the image format
@param {number} [quality] - A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support lossy compression (such as image/jpeg or image/webp). A user agent will use its default quality value if this option is not specified, or if the number is outside the allowed range.
@returns {Promise} A Promise returning an ImageBitmap.
@example
renderTarget.transferToImageBitmap().then((bitmap) => console.log(bitmap));