VTK  9.7.20261127
vtkWebGPUToneMappingPass.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
18
19#ifndef vtkWebGPUToneMappingPass_h
20#define vtkWebGPUToneMappingPass_h
21
22#include "vtkRenderingWebGPUModule.h" // For export macro
23#include "vtkToneMappingPass.h"
24#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
25#include "vtk_wgpu.h" // for webgpu C API
26
27#include <memory> // for std::unique_ptr
28
29VTK_ABI_NAMESPACE_BEGIN
32
33class VTKRENDERINGWEBGPU_EXPORT VTK_MARSHALAUTO vtkWebGPUToneMappingPass : public vtkToneMappingPass
34{
35public:
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
45 void Render(const vtkRenderState* s) override;
46
51
55 WGPUTextureFormat GetColorTextureFormat() const;
56
61 WGPUTextureView GetColorTextureView(vtkWebGPURenderer* renderer);
62
67 void Resolve(vtkWebGPURenderer* renderer);
68
69protected:
72
73private:
75 void operator=(const vtkWebGPUToneMappingPass&) = delete;
76
77 class vtkInternals;
78 std::unique_ptr<vtkInternals> Internals;
79};
80
81#define vtkWebGPUToneMappingPass_OVERRIDE_ATTRIBUTES \
82 vtkWebGPUToneMappingPass::CreateOverrideAttributes()
83VTK_ABI_NAMESPACE_END
84#endif
a simple class to control print indentation
Definition vtkIndent.h:108
Attribute for vtkObjectFactory overrides.
Context in which a vtkRenderPass will render.
vtkToneMappingPass()=default
void Resolve(vtkWebGPURenderer *renderer)
Tone map the color texture into the color attachment of the render window, in the viewport of the ren...
WGPUTextureView GetColorTextureView(vtkWebGPURenderer *renderer)
Get the color texture that the renderer draws into.
~vtkWebGPUToneMappingPass() override
static vtkOverrideAttribute * CreateOverrideAttributes()
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
void Render(const vtkRenderState *s) override
Perform rendering according to a render state.
static vtkWebGPUToneMappingPass * New()
WGPUTextureFormat GetColorTextureFormat() const
Get the format of the color texture that the renderer draws into.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
window superclass for vtkRenderWindow
Definition vtkWindow.h:62
#define VTK_MARSHALAUTO
#define VTK_NEWINSTANCE