tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

RenderPipeline.h (991B)


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