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

    Function createKTX2TextureDecoder

    • Create an app-lifetime KTX2 decoder for one initialized renderer.

      The Three.js loader and its worker pool are created lazily on the first KTX2 payload, so applications that never load KTX2 do not initialize the Basis transcoder. Missing renderers and devices without a compressed target fail closed with the portable texture alternatives in the error.

      Parameters

      Returns KTX2TextureDecoder