openmixer — generated API reference
    Preparing search index...

    Function selectGPU

    • Pick the GPU to run on: the caller's preference (a GpuVendorName) when one of that vendor is present, otherwise the highest-DetectedGpu.rank card. Ties keep enumeration order, so card0 wins over card1 of the same vendor. Null when the list is empty.

      Parameters

      • gpus: readonly DetectedGpu[]
      • Optionalpreference: string

      Returns DetectedGpu | null