VTK  9.4.20241112
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
11VTK_ABI_NAMESPACE_BEGIN
12class VTKRENDERINGWEBGPU_EXPORT vtkWebGPURenderPass : public vtkRenderPass
13{
14public:
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
23protected:
26
27private:
29 void operator=(const vtkWebGPURenderPass&) = delete;
30};
31
32VTK_ABI_NAMESPACE_END
33#endif
a simple class to control print indentation
Definition vtkIndent.h:108
Perform part of the rendering of a vtkRenderer.
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