VTK  9.3.20240919
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:
26
27private:
30
32
36 vtkGetMacro(AssociatedTextureIndex, int);
37 vtkSetMacro(AssociatedTextureIndex, int);
39
40 // Texture index of the texture that this texture view views. This index is only viable in the
41 // compute pass that created the texture.
42 int AssociatedTextureIndex = -1;
43};
44
45VTK_ABI_NAMESPACE_END
46
47#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
void operator=(const vtkWebGPUComputeTextureView &)=delete
vtkWebGPUComputeTextureView(const vtkWebGPUComputeTextureView &)=delete
static vtkWebGPUComputeTextureView * New()
Abstraction class for WebGPU texture views.