Luxar Viewer API Documentation - v2026.10.22
    Preparing search index...
    • Negotiate the adapter, then start the module fetch and device request together.

      With platformRules (BackendSelection.platformRules) the adapter vendor is checked first: an adapter matching no rule returns policy-rejected before anything is downloaded or requested, and a matching one calls onPolicyMatch — the caller's hook for the TSL fetch the policy deferred.

      Parameters

      • OptionalrendererOverride: "webgl" | "webgpu"
      • OptionalplatformRules: readonly WebGPUPlatformRule[]
      • OptionalonPolicyMatch: () => void

      Returns Promise<CoreDeviceRequest>