VTK  9.7.1
vtkWebGPUComputeTextureView.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 vtkWebGPUComputeTextureView_h
5 #define vtkWebGPUComputeTextureView_h
6 
7 #include "vtkRenderingWebGPUModule.h" // For export macro
8 #include "vtkSetGet.h" // for get/set macros
9 #include "vtkWebGPUTextureView.h"
10 
11 VTK_ABI_NAMESPACE_BEGIN
12 
13 class VTKRENDERINGWEBGPU_EXPORT vtkWebGPUComputeTextureView : public vtkWebGPUTextureView
14 {
15 public:
18 
19  void PrintSelf(ostream& os, vtkIndent indent) override;
20 
21 protected:
23  ~vtkWebGPUComputeTextureView() override;
24 
25 private:
26  friend class vtkWebGPUComputePass;
28 
30  void operator=(const vtkWebGPUComputeTextureView&) = delete;
31 
33 
37  vtkGetMacro(AssociatedTextureIndex, int);
38  vtkSetMacro(AssociatedTextureIndex, int);
40 
41  // Texture index of the texture that this texture view views. This index is only viable in the
42  // compute pass that created the texture.
43  int AssociatedTextureIndex = -1;
44 };
45 
46 VTK_ABI_NAMESPACE_END
47 
48 #endif
static vtkWebGPUTextureView * New()
abstract base class for most VTK objects
Definition: vtkObject.h:52
Abstraction class for WebGPU texture views.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:28
This class manages the creation/deletion/recreation/ of compute textures used by a compute pass...
A compute pass is an abstraction for offloading computation from the CPU onto the GPU using WebGPU co...