tor-browser

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

ComputePipeline.h (1001B)


      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_ComputePipeline_H_
      7 #define GPU_ComputePipeline_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 ComputePipeline final : public nsWrapperCache,
     19                              public ObjectBase,
     20                              public ChildOf<Device> {
     21 public:
     22  GPU_DECL_CYCLE_COLLECTION(ComputePipeline)
     23  GPU_DECL_JS_WRAP(ComputePipeline)
     24 
     25  ComputePipeline(Device* const aParent, RawId aId);
     26  already_AddRefed<BindGroupLayout> GetBindGroupLayout(uint32_t index) const;
     27 
     28 private:
     29  virtual ~ComputePipeline();
     30 };
     31 
     32 }  // namespace mozilla::webgpu
     33 
     34 #endif  // GPU_ComputePipeline_H_