VTK  9.3.0
vtkWebGPURenderPass.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
3 #ifndef vtkWebGPURenderPass_h
4 #define vtkWebGPURenderPass_h
5 
6 #include "vtkRenderPass.h"
7 
8 #include "vtkRenderingWebGPUModule.h" // for export macro
9 #include "vtk_wgpu.h" // for webgpu
10 
11 VTK_ABI_NAMESPACE_BEGIN
12 class VTKRENDERINGWEBGPU_EXPORT vtkWebGPURenderPass : public vtkRenderPass
13 {
14 public:
16  void PrintSelf(ostream& os, vtkIndent indent) override;
17 
18  void Render(const vtkRenderState* state) override;
19 
20  virtual wgpu::RenderPassEncoder Begin(const vtkRenderState* state) = 0;
21  virtual void End(const vtkRenderState* state, wgpu::RenderPassEncoder&& pass);
22 
23 protected:
26 
27 private:
29  void operator=(const vtkWebGPURenderPass&) = delete;
30 };
31 
32 VTK_ABI_NAMESPACE_END
33 #endif
a simple class to control print indentation
Definition: vtkIndent.h:38
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:49
Context in which a vtkRenderPass will render.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Render(const vtkRenderState *state) override
Perform rendering according to a render state s.
~vtkWebGPURenderPass() override
virtual void End(const vtkRenderState *state, wgpu::RenderPassEncoder &&pass)
virtual wgpu::RenderPassEncoder Begin(const vtkRenderState *state)=0