VTK  9.7.1
vtkWebGPURenderPassCreateInfoInternals.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 vtkWebGPURenderPassCreateInfoInternals_h
4 #define vtkWebGPURenderPassCreateInfoInternals_h
5 
7 #include "vtkRenderingWebGPUModule.h"
8 #include "vtk_wgpu.h"
9 
10 VTK_ABI_NAMESPACE_BEGIN
11 class VTKRENDERINGWEBGPU_NO_EXPORT vtkWebGPURenderPassCreateInfoInternals
12 {
13 public:
15  vtkWebGPURenderPassCreateInfoInternals(uint32_t width, uint32_t height, wgpu::Texture color,
16  wgpu::TextureFormat texture = DefaultColorFormat);
17 
18  static constexpr wgpu::TextureFormat DefaultColorFormat = wgpu::TextureFormat::RGBA8Unorm;
19 
20  static vtkWebGPURenderPassCreateInfoInternals CreateBasicRenderPass(const wgpu::Device& device,
21  uint32_t width, uint32_t height, wgpu::TextureFormat format = DefaultColorFormat);
22 
23  uint32_t width;
24  uint32_t height;
25  wgpu::Texture color;
26  wgpu::TextureFormat colorFormat;
28 };
29 VTK_ABI_NAMESPACE_END
30 
31 #endif
32 // VTK-HeaderTest-Exclude: vtkWebGPURenderPassCreateInfoInternals.h
vtkWebGPURenderPassDescriptorInternals renderPassInfo