VTK  9.3.0
vtkWebGPUInternalsRenderPassDescriptor.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 vtkWebGPUInternalsRenderPassDescriptor_h
4#define vtkWebGPUInternalsRenderPassDescriptor_h
5
6#include "vtkRenderingWebGPUModule.h"
7#include "vtk_wgpu.h"
8
9#include <array>
10#include <vector>
11
12VTK_ABI_NAMESPACE_BEGIN
13class VTKRENDERINGWEBGPU_EXPORT vtkWebGPUInternalsRenderPassDescriptor
14 : public wgpu::RenderPassDescriptor
15{
16public:
17 static constexpr int kMaxColorAttachments = 8u;
18 vtkWebGPUInternalsRenderPassDescriptor(const std::vector<wgpu::TextureView>& colorAttachmentInfo,
19 wgpu::TextureView depthStencil = wgpu::TextureView());
21
23 const vtkWebGPUInternalsRenderPassDescriptor& otherRenderPass);
25 const vtkWebGPUInternalsRenderPassDescriptor& otherRenderPass);
26
27 void UnsetDepthStencilLoadStoreOpsForFormat(wgpu::TextureFormat format);
28
29 std::array<wgpu::RenderPassColorAttachment, kMaxColorAttachments> ColorAttachments;
30 wgpu::RenderPassDepthStencilAttachment DepthStencilAttachmentInfo = {};
31};
32VTK_ABI_NAMESPACE_END
33
34#endif
35// VTK-HeaderTest-Exclude: vtkWebGPUInternalsRenderPassDescriptor.h
vtkWebGPUInternalsRenderPassDescriptor(const vtkWebGPUInternalsRenderPassDescriptor &otherRenderPass)
void UnsetDepthStencilLoadStoreOpsForFormat(wgpu::TextureFormat format)
const vtkWebGPUInternalsRenderPassDescriptor & operator=(const vtkWebGPUInternalsRenderPassDescriptor &otherRenderPass)
vtkWebGPUInternalsRenderPassDescriptor(const std::vector< wgpu::TextureView > &colorAttachmentInfo, wgpu::TextureView depthStencil=wgpu::TextureView())
std::array< wgpu::RenderPassColorAttachment, kMaxColorAttachments > ColorAttachments