VTK  9.4.20241112
vtkWebGPUClearDrawPass.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 vtkWebGPUClearDrawPass_h
4#define vtkWebGPUClearDrawPass_h
5
7
8#include "vtkRenderingWebGPUModule.h" // for export macro
9
10VTK_ABI_NAMESPACE_BEGIN
11class VTKRENDERINGWEBGPU_EXPORT vtkWebGPUClearDrawPass : public vtkWebGPURenderPass
12{
13public:
16 void PrintSelf(ostream& os, vtkIndent indent) override;
17
18 void Render(const vtkRenderState* state) override;
19
21
25 vtkGetMacro(DoClear, bool);
26 vtkSetMacro(DoClear, bool);
28 wgpu::RenderPassEncoder Begin(const vtkRenderState* state) override;
29
30protected:
33
34private:
35 bool DoClear = true;
36
38 void operator=(const vtkWebGPUClearDrawPass&) = delete;
39};
40
41VTK_ABI_NAMESPACE_END
42#endif
a simple class to control print indentation
Definition vtkIndent.h:108
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.
~vtkWebGPUClearDrawPass() override
wgpu::RenderPassEncoder Begin(const vtkRenderState *state) override
static vtkWebGPUClearDrawPass * New()