VTK  9.3.20240329
vtkGPUInfo.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 
14 #ifndef vtkGPUInfo_h
15 #define vtkGPUInfo_h
16 
17 #include "vtkObject.h"
18 #include "vtkRenderingCoreModule.h" // For export macro
19 
20 VTK_ABI_NAMESPACE_BEGIN
21 class VTKRENDERINGCORE_EXPORT vtkGPUInfo : public vtkObject
22 {
23 public:
24  static vtkGPUInfo* New();
25  vtkTypeMacro(vtkGPUInfo, vtkObject);
26  void PrintSelf(ostream& os, vtkIndent indent) override;
27 
29 
35  vtkSetMacro(DedicatedVideoMemory, vtkTypeUInt64);
36  vtkGetMacro(DedicatedVideoMemory, vtkTypeUInt64);
38 
40 
46  vtkSetMacro(DedicatedSystemMemory, vtkTypeUInt64);
47  vtkGetMacro(DedicatedSystemMemory, vtkTypeUInt64);
49 
51 
56  vtkSetMacro(SharedSystemMemory, vtkTypeUInt64);
57  vtkGetMacro(SharedSystemMemory, vtkTypeUInt64);
59 
60 protected:
62  ~vtkGPUInfo() override;
63 
64  vtkTypeUInt64 DedicatedVideoMemory;
65  vtkTypeUInt64 DedicatedSystemMemory;
66  vtkTypeUInt64 SharedSystemMemory;
67 
68 private:
69  vtkGPUInfo(const vtkGPUInfo&) = delete;
70  void operator=(const vtkGPUInfo&) = delete;
71 };
72 
73 VTK_ABI_NAMESPACE_END
74 #endif
Stores GPU VRAM information.
Definition: vtkGPUInfo.h:22
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkGPUInfo * New()
vtkTypeUInt64 DedicatedSystemMemory
Definition: vtkGPUInfo.h:65
~vtkGPUInfo() override
vtkTypeUInt64 SharedSystemMemory
Definition: vtkGPUInfo.h:66
vtkTypeUInt64 DedicatedVideoMemory
Definition: vtkGPUInfo.h:64
a simple class to control print indentation
Definition: vtkIndent.h:108
abstract base class for most VTK objects
Definition: vtkObject.h:162