Bug 1857841 - pt 3. Add a new page kind named "fresh" r=glandium
[gecko.git] / dom / webgpu / BindGroupLayout.h
blobfcd721ab5f919085ffde4140982e8b28da5a95bb
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_BindGroupLayout_H_
7 #define GPU_BindGroupLayout_H_
9 #include "nsWrapperCache.h"
10 #include "ObjectModel.h"
11 #include "mozilla/webgpu/WebGPUTypes.h"
13 namespace mozilla::webgpu {
15 class Device;
17 class BindGroupLayout final : public ObjectBase, public ChildOf<Device> {
18 public:
19 GPU_DECL_CYCLE_COLLECTION(BindGroupLayout)
20 GPU_DECL_JS_WRAP(BindGroupLayout)
22 BindGroupLayout(Device* const aParent, RawId aId, bool aOwning);
24 const RawId mId;
25 const bool mOwning;
27 private:
28 ~BindGroupLayout();
29 void Cleanup();
32 } // namespace mozilla::webgpu
34 #endif // GPU_BindGroupLayout_H_