VTK  9.3.1
vtkWebGPUInternalsRenderPassCreateInfo.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 vtkWebGPUInternalsRenderPassCreateInfo_h
4 #define vtkWebGPUInternalsRenderPassCreateInfo_h
5 
6 #include "vtkRenderingWebGPUModule.h"
8 #include "vtk_wgpu.h"
9 
10 VTK_ABI_NAMESPACE_BEGIN
11 class VTKRENDERINGWEBGPU_EXPORT vtkWebGPUInternalsRenderPassCreateInfo
12 {
13 public:
15  vtkWebGPUInternalsRenderPassCreateInfo(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 vtkWebGPUInternalsRenderPassCreateInfo 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: vtkWebGPUInternalsRenderPassCreateInfo.h
vtkWebGPUInternalsRenderPassDescriptor renderPassInfo