VTK  9.4.20250306
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
10
11VTK_ABI_NAMESPACE_BEGIN
12
13class VTKRENDERINGWEBGPU_EXPORT vtkWebGPUComputeTextureView : public vtkWebGPUTextureView
14{
15public:
18
19 void PrintSelf(ostream& os, vtkIndent indent) override;
20
21protected:
24
25private:
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
46VTK_ABI_NAMESPACE_END
47
48#endif
a simple class to control print indentation
Definition vtkIndent.h:108
abstract base class for most VTK objects
Definition vtkObject.h:162
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...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkWebGPUComputeTextureView() override
static vtkWebGPUComputeTextureView * New()
Abstraction class for WebGPU texture views.