mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
199a362906
Adds support for recording render passes in WebGPU. The `wgpu` logo is also added to the repository ("gfx/wgpu/logo.png") under [CC-BY-SA](https://creativecommons.org/licenses/by-sa/3.0/) license. Differential Revision: https://phabricator.services.mozilla.com/D62461 --HG-- extra : moz-landing-system : lando
35 lines
833 B
C++
35 lines
833 B
C++
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef GPU_RenderPipeline_H_
|
|
#define GPU_RenderPipeline_H_
|
|
|
|
#include "nsWrapperCache.h"
|
|
#include "ObjectModel.h"
|
|
|
|
namespace mozilla {
|
|
namespace webgpu {
|
|
|
|
class Device;
|
|
|
|
class RenderPipeline final : public ObjectBase, public ChildOf<Device> {
|
|
public:
|
|
GPU_DECL_CYCLE_COLLECTION(RenderPipeline)
|
|
GPU_DECL_JS_WRAP(RenderPipeline)
|
|
|
|
RenderPipeline(Device* const aParent, RawId aId);
|
|
|
|
const RawId mId;
|
|
|
|
private:
|
|
virtual ~RenderPipeline();
|
|
void Cleanup();
|
|
};
|
|
|
|
} // namespace webgpu
|
|
} // namespace mozilla
|
|
|
|
#endif // GPU_RenderPipeline_H_
|