Function buildTextureFromArrayBuffer

Creates the structure for a texture backed by an array buffer data source.

  • Parameters

    • arrayBuffer: ArrayBuffer

      A JS array buffer containing image data.

    • mimeType: "image/jpeg" | "image/png"

      The mime type of the image. Must be image/png or image/jpeg.

    Returns { texture: Texture; textureInfo: TextureInfo }

    Object containing a texture object and a corresponding textureInfo object