VTK  9.4.20241113
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
10VTK_ABI_NAMESPACE_BEGIN
11class VTKRENDERINGWEBGPU_NO_EXPORT vtkWebGPURenderPassCreateInfoInternals
12{
13public:
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
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: vtkWebGPURenderPassCreateInfoInternals.h
vtkWebGPURenderPassCreateInfoInternals(uint32_t width, uint32_t height, wgpu::Texture color, wgpu::TextureFormat texture=DefaultColorFormat)
static vtkWebGPURenderPassCreateInfoInternals CreateBasicRenderPass(const wgpu::Device &device, uint32_t width, uint32_t height, wgpu::TextureFormat format=DefaultColorFormat)