Documentation
    Preparing search index...

    Interface GpuAdapter

    The adapter a device is requested from.

    interface GpuAdapter {
        features?: { has(name: string): boolean };
        info?: Readonly<Record<string, unknown>>;
        requestDevice(
            descriptor?: { label?: string; requiredFeatures?: readonly string[] },
        ): Promise<GpuDevice | null>;
    }
    Index
    features?: { has(name: string): boolean }

    The adapter's optional features.

    info?: Readonly<Record<string, unknown>>

    Optional vendor/architecture strings, where the implementation exposes them.

    • Requests a device; resolves null — or rejects — when none can be had.

      Parameters

      • Optionaldescriptor: { label?: string; requiredFeatures?: readonly string[] }
        • Optional Readonlylabel?: string
        • Optional ReadonlyrequiredFeatures?: readonly string[]

          Features this device must support — timestamp-query for A-1.

      Returns Promise<GpuDevice | null>