VTK  9.4.2
vtkWebGPURenderPassDescriptorInternals.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 vtkWebGPURenderPassDescriptorInternals_h
4#define vtkWebGPURenderPassDescriptorInternals_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_NO_EXPORT vtkWebGPURenderPassDescriptorInternals
14 : public wgpu::RenderPassDescriptor
15{
16public:
17 static constexpr int kMaxColorAttachments = 8u;
18 vtkWebGPURenderPassDescriptorInternals(const std::vector<wgpu::TextureView>& colorAttachmentInfo,
19 wgpu::TextureView depthStencil = wgpu::TextureView(), bool doClear = true);
21
23 const vtkWebGPURenderPassDescriptorInternals& otherRenderPass);
25 const vtkWebGPURenderPassDescriptorInternals& 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: vtkWebGPURenderPassDescriptorInternals.h
vtkWebGPURenderPassDescriptorInternals(const vtkWebGPURenderPassDescriptorInternals &otherRenderPass)
std::array< wgpu::RenderPassColorAttachment, kMaxColorAttachments > ColorAttachments
void UnsetDepthStencilLoadStoreOpsForFormat(wgpu::TextureFormat format)
const vtkWebGPURenderPassDescriptorInternals & operator=(const vtkWebGPURenderPassDescriptorInternals &otherRenderPass)
vtkWebGPURenderPassDescriptorInternals(const std::vector< wgpu::TextureView > &colorAttachmentInfo, wgpu::TextureView depthStencil=wgpu::TextureView(), bool doClear=true)