TextureData that is used to populate a CoreContextTexture

interface TextureData {
    data:
        | null
        | Uint8Array
        | ImageBitmap
        | HTMLImageElement
        | ImageData
        | SubTextureProps
        | CompressedData;
    premultiplyAlpha?: null | boolean;
}

Properties

data:
    | null
    | Uint8Array
    | ImageBitmap
    | HTMLImageElement
    | ImageData
    | SubTextureProps
    | CompressedData

The texture data

premultiplyAlpha?: null | boolean

Premultiply alpha when uploading texture data to the GPU

false