chromium/third_party/blink/renderer/modules/webgpu/gpu_device_lost_info.idl

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://gpuweb.github.io/gpuweb/

enum GPUDeviceLostReason {
  "unknown",
  "destroyed"
};

[
    Exposed=(Window, Worker),
    SecureContext
] interface GPUDeviceLostInfo {
    readonly attribute GPUDeviceLostReason reason;
    readonly attribute DOMString message;
};