Hilo3d API - v2.0.0
    Preparing search index...

    Interface TextureSubImage

    Complete destination and source description for one immutable texture content update.

    face, layer, and z are target-specific and mutually exclusive: cube maps require face; 2D arrays require layer and depth, where depth is the number of consecutive layers; and 3D textures require z and depth. These fields are omitted for 2D textures.

    interface TextureSubImage {
        depth?: number;
        face?: TextureCubeFace;
        height: number;
        image: TextureSource;
        layer?: number;
        mipLevel: number;
        width: number;
        x: number;
        y: number;
        z?: number;
    }
    Index
    depth?: number

    Number of consecutive array layers or 3D slices.

    Cube-map face in canonical order. Required only for cube textures.

    height: number

    Source and destination height in logical texels.

    Exact raw pixel/block data or one external image matching width and height.

    layer?: number

    First destination layer. Required only for 2D-array textures.

    mipLevel: number

    Destination mip level. Levels above zero require an explicit mipmap chain.

    width: number

    Source and destination width in logical texels.

    x: number

    Destination x offset in logical texels.

    y: number

    Destination y offset in logical texels.

    z?: number

    First destination slice. Required only for 3D textures.