Bug 1882660 [wpt PR 44844] - IDB: Consolidate previously extended WPT files into...
[gecko.git] / dom / webgpu / PipelineLayout.h
blob65293d778db6c4dbe94b8072ae6da83d94cdf8bb
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_PipelineLayout_H_
7 #define GPU_PipelineLayout_H_
9 #include "nsWrapperCache.h"
10 #include "ObjectModel.h"
11 #include "mozilla/webgpu/WebGPUTypes.h"
13 namespace mozilla::webgpu {
15 class Device;
17 class PipelineLayout final : public ObjectBase, public ChildOf<Device> {
18 public:
19 GPU_DECL_CYCLE_COLLECTION(PipelineLayout)
20 GPU_DECL_JS_WRAP(PipelineLayout)
22 PipelineLayout(Device* const aParent, RawId aId);
24 const RawId mId;
26 private:
27 virtual ~PipelineLayout();
28 void Cleanup();
31 } // namespace mozilla::webgpu
33 #endif // GPU_PipelineLayout_H_