// Copyright 2023 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 GPUPipelineErrorReason {
"validation",
"internal"
};
dictionary GPUPipelineErrorInit {
required GPUPipelineErrorReason reason;
};
[
Exposed=(Window, Worker),
SecureContext,
Serializable
]
interface GPUPipelineError : DOMException {
constructor(optional DOMString message = "", GPUPipelineErrorInit options);
readonly attribute GPUPipelineErrorReason reason;
};