menu

GpuAdapterRequest

import { GpuAdapterRequest } from "destack:gpu/binding";

Adapter discovery options.

language/library/src/gpu/binding/adapter.ds:241:250
1export struct GpuAdapterRequest {2    backend: GpuBackend;3    powerPreference: GpuPowerPreference;4    forceFallbackAdapter: boolean;5    compatibleSurface: GpuSurfaceHandle;6}

Members

backend: GpuBackend

Preferred backend.

powerPreference: GpuPowerPreference

Preferred power profile.

forceFallbackAdapter: boolean

Whether only one fallback adapter should be selected.

compatibleSurface: GpuSurfaceHandle

Surface compatibility constraint when provided.