forked from mirrors/gecko-dev
		
	 199a362906
			
		
	
	
		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
		
	
			
		
			
				
	
	
		
			34 lines
		
	
	
	
		
			833 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			34 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_
 |