Bug 1853814 [wpt PR 42017] - LoAF: Expose script URL for promise resolvers, a=testonly
[gecko.git] / dom / webgpu / RenderBundle.h
blob0fef6af7813714a181066996b63e4af31750bfc5
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef GPU_RenderBundle_H_
7 #define GPU_RenderBundle_H_
9 #include "nsWrapperCache.h"
10 #include "ObjectModel.h"
12 namespace mozilla::webgpu {
14 class Device;
16 class RenderBundle final : public ObjectBase, public ChildOf<Device> {
17 public:
18 GPU_DECL_CYCLE_COLLECTION(RenderBundle)
19 GPU_DECL_JS_WRAP(RenderBundle)
21 RenderBundle(Device* const aParent, RawId aId);
23 const RawId mId;
25 private:
26 virtual ~RenderBundle();
27 void Cleanup();
30 } // namespace mozilla::webgpu
32 #endif // GPU_RenderBundle_H_