PipelineLayout.h (890B)
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/. */ 5 6 #ifndef GPU_PipelineLayout_H_ 7 #define GPU_PipelineLayout_H_ 8 9 #include "ObjectModel.h" 10 #include "mozilla/webgpu/WebGPUTypes.h" 11 #include "nsWrapperCache.h" 12 13 namespace mozilla::webgpu { 14 15 class Device; 16 17 class PipelineLayout final : public nsWrapperCache, 18 public ObjectBase, 19 public ChildOf<Device> { 20 public: 21 GPU_DECL_CYCLE_COLLECTION(PipelineLayout) 22 GPU_DECL_JS_WRAP(PipelineLayout) 23 24 PipelineLayout(Device* const aParent, RawId aId); 25 26 private: 27 virtual ~PipelineLayout(); 28 }; 29 30 } // namespace mozilla::webgpu 31 32 #endif // GPU_PipelineLayout_H_