Interface LoadImageToMipLevelDescriptor

Descriptor for loading image data to a specific mip level of a texture.

interface LoadImageToMipLevelDescriptor {
    data: TypedArray;
    height: number;
    mipLevel: number;
    rowSizeByPixel: number;
    type: ComponentTypeEnum;
    width: number;
    xOffset: number;
    yOffset: number;
}

Properties

Image data in TypedArray format

height: number

Height in the texture to copy

mipLevel: number

Mip level to load the image data to

rowSizeByPixel: number

Row size by pixel of the image data

Component type of the image data

width: number

Width in the texture to copy

xOffset: number

X offset in the texture to copy data

yOffset: number

Y offset in the texture to copy data