VTK  9.7.20260913
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 WGPURenderPassDescriptor
15{
16public:
17 static constexpr int kMaxColorAttachments = 8u;
18 vtkWebGPURenderPassDescriptorInternals(const std::vector<WGPUTextureView>& colorAttachmentInfo,
19 WGPUTextureView depthStencil = nullptr, bool clearColor = true, bool clearDepth = true,
20 bool clearStencil = true);
22
24 const vtkWebGPURenderPassDescriptorInternals& otherRenderPass);
26 const vtkWebGPURenderPassDescriptorInternals& otherRenderPass);
27
28 void UnsetDepthStencilLoadStoreOpsForFormat(WGPUTextureFormat format);
29
30 std::array<WGPURenderPassColorAttachment, kMaxColorAttachments> ColorAttachments;
31 WGPURenderPassDepthStencilAttachment DepthStencilAttachmentInfo =
32 WGPU_RENDER_PASS_DEPTH_STENCIL_ATTACHMENT_INIT;
33};
34VTK_ABI_NAMESPACE_END
35
36#endif
37// VTK-HeaderTest-Exclude: vtkWebGPURenderPassDescriptorInternals.h
WGPURenderPassDepthStencilAttachment DepthStencilAttachmentInfo
vtkWebGPURenderPassDescriptorInternals(const vtkWebGPURenderPassDescriptorInternals &otherRenderPass)
vtkWebGPURenderPassDescriptorInternals(const std::vector< WGPUTextureView > &colorAttachmentInfo, WGPUTextureView depthStencil=nullptr, bool clearColor=true, bool clearDepth=true, bool clearStencil=true)
const vtkWebGPURenderPassDescriptorInternals & operator=(const vtkWebGPURenderPassDescriptorInternals &otherRenderPass)
void UnsetDepthStencilLoadStoreOpsForFormat(WGPUTextureFormat format)
std::array< WGPURenderPassColorAttachment, kMaxColorAttachments > ColorAttachments