VTK  9.3.0
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
10VTK_ABI_NAMESPACE_BEGIN
11class VTKRENDERINGWEBGPU_EXPORT vtkWebGPUInternalsRenderPassCreateInfo
12{
13public:
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
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};
29VTK_ABI_NAMESPACE_END
30
31#endif
32// VTK-HeaderTest-Exclude: vtkWebGPUInternalsRenderPassCreateInfo.h
vtkWebGPUInternalsRenderPassCreateInfo(uint32_t width, uint32_t height, wgpu::Texture color, wgpu::TextureFormat texture=DefaultColorFormat)
static vtkWebGPUInternalsRenderPassCreateInfo CreateBasicRenderPass(const wgpu::Device &device, uint32_t width, uint32_t height, wgpu::TextureFormat format=DefaultColorFormat)