VTK
9.6.2
Main Page
Related Pages
Topics
Namespaces
Classes
Files
File List
File Members
Rendering
WebGPU
Private
vtkWebGPUComputePassTextureStorageInternals.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
4
#ifndef vtkWebGPUComputePassTextureStorageInternals_h
5
#define vtkWebGPUComputePassTextureStorageInternals_h
6
7
#include "
vtkObject.h
"
8
#include "
vtkSmartPointer.h
"
// for smart pointers
9
#include "
vtkWeakPointer.h
"
// for the weak pointer of the parent compute pass
10
#include "
vtkWebGPUComputePass.h
"
// for enum
11
#include "
vtkWebGPUComputeRenderTexture.h
"
// for compute render textures
12
#include "
vtkWebGPUComputeTexture.h
"
// for compute textures
13
#include "
vtkWebGPUComputeTextureView.h
"
// for compute texture views
14
#include "
vtkWebGPUConfiguration.h
"
// for ivar
15
#include "vtk_wgpu.h"
// for webgpu
16
17
#include <cstddef>
18
#include <unordered_map>
19
#include <unordered_set>
20
21
VTK_ABI_NAMESPACE_BEGIN
22
23
class
vtkWebGPUComputePass
;
24
31
class
vtkWebGPUComputePassTextureStorageInternals
:
public
vtkObject
32
{
33
public
:
34
static
vtkWebGPUComputePassTextureStorageInternals
*
New
();
35
vtkTypeMacro(
vtkWebGPUComputePassTextureStorageInternals
,
vtkObject
);
36
43
vtkSetSmartPointerMacro(ParentPassWGPUConfiguration,
vtkWebGPUConfiguration
);
44
48
void
SetComputePass
(
vtkWeakPointer<vtkWebGPUComputePass>
parentComputePass);
49
57
bool
CheckTextureIndex
(std::size_t textureIndex,
const
std::string& callerFunctionName);
58
67
bool
CheckTextureViewIndex
(std::size_t textureViewIndex,
const
std::string& callerFunctionName);
68
72
bool
CheckTextureCorrectness
(
vtkWebGPUComputeTexture
* texture);
73
77
bool
CheckTextureViewCorrectness
(
vtkWebGPUComputeTextureView
* textureView);
78