VTK  9.4.20250413
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
20VTK_ABI_NAMESPACE_BEGIN
21class VTKRENDERINGCORE_EXPORT vtkGPUInfo : public vtkObject
22{
23public:
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
60protected:
62 ~vtkGPUInfo() override;
63
64 vtkTypeUInt64 DedicatedVideoMemory;
65 vtkTypeUInt64 DedicatedSystemMemory;
66 vtkTypeUInt64 SharedSystemMemory;
67
68private:
69 vtkGPUInfo(const vtkGPUInfo&) = delete;
70 void operator=(const vtkGPUInfo&) = delete;
71};
72
73VTK_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.
vtkTypeUInt64 DedicatedSystemMemory
Definition vtkGPUInfo.h:65
~vtkGPUInfo() override
vtkTypeUInt64 SharedSystemMemory
Definition vtkGPUInfo.h:66
vtkTypeUInt64 DedicatedVideoMemory
Definition vtkGPUInfo.h:64
static vtkGPUInfo * New()
a simple class to control print indentation
Definition vtkIndent.h:108
abstract base class for most VTK objects
Definition vtkObject.h:162