gpu: initial pass at requestAdapter

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-07 00:24:26 -07:00 committed by Stephen Gutekanst
parent 3f19563354
commit 3a0b0fd83c
5 changed files with 189 additions and 29 deletions

View file

@ -36,6 +36,8 @@ limits: SupportedLimits,
/// An adapter may be considered a fallback adapter if it has significant performance caveats in
/// exchange for some combination of wider compatibility, more predictable behavior, or improved
/// privacy. It is not guaranteed that a fallback adapter is available on every system.
///
/// Always false on native implementations of WebGPU (TODO: why is this not queryable in Dawn?)
fallback: bool,
// The type erased pointer to the Adapter implementation