Luxar Viewer API Documentation - v2026.10.22
    Preparing search index...
    • The scratch to allocate when count elements outgrow capacity: double the capacity when the device allows it, so a node that keeps appending does not reallocate on every commit, else exactly count; null when even that does not fit.

      Parameters

      • count: number
      • capacity: number
      • limits: GpuLimits

      Returns ScratchPlan | null