Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Function decodeMeshTexture

    • Fetch and decode a mesh texture into an upload-ready payload.

      Parameters

      • path: string

        Scene path of the node, for error attribution.

      • handle: Array<DataType, Readable>

        The texture zarr array.

      • declared: TextureDeclaration

        The preflight's VALIDATED declaration — never attrs, so the dimensions this allocates from are the same ones the budget was checked against.

      • decoder: ArrayDecoder

        Shared array decoder, for the encoded raw arm.

      • storeRoot: Location<Readable>

        Store root, for an array_ref hop.

      • OptionaldecodeKTX2: KTX2TextureDecoder
      • Optionalsignal: AbortSignal

        Abort signal, honoured by the zarr reads.

      Returns Promise<MeshTextureData>