VTK  9.0.20200808
vtkGPUInfo.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGPUInfo.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
26 #ifndef vtkGPUInfo_h
27 #define vtkGPUInfo_h
28 
29 #include "vtkObject.h"
30 #include "vtkRenderingCoreModule.h" // For export macro
31 
32 class VTKRENDERINGCORE_EXPORT vtkGPUInfo : public vtkObject
33 {
34 public:
35  static vtkGPUInfo* New();
36  vtkTypeMacro(vtkGPUInfo, vtkObject);
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
40 
46  vtkSetMacro(DedicatedVideoMemory, vtkTypeUInt64);
47  vtkGetMacro(DedicatedVideoMemory, vtkTypeUInt64);
49 
51 
57  vtkSetMacro(DedicatedSystemMemory, vtkTypeUInt64);
58  vtkGetMacro(DedicatedSystemMemory, vtkTypeUInt64);
60 
62 
67  vtkSetMacro(SharedSystemMemory, vtkTypeUInt64);
68  vtkGetMacro(SharedSystemMemory, vtkTypeUInt64);
70 
71 protected:
72  vtkGPUInfo();
73  ~vtkGPUInfo() override;
74 
75  vtkTypeUInt64 DedicatedVideoMemory;
76  vtkTypeUInt64 DedicatedSystemMemory;
77  vtkTypeUInt64 SharedSystemMemory;
78 
79 private:
80  vtkGPUInfo(const vtkGPUInfo&) = delete;
81  void operator=(const vtkGPUInfo&) = delete;
82 };
83 
84 #endif
vtkGPUInfo::DedicatedSystemMemory
vtkTypeUInt64 DedicatedSystemMemory
Definition: vtkGPUInfo.h:76
vtkGPUInfo::SharedSystemMemory
vtkTypeUInt64 SharedSystemMemory
Definition: vtkGPUInfo.h:77
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:62
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkObject.h
vtkGPUInfo::DedicatedVideoMemory
vtkTypeUInt64 DedicatedVideoMemory
Definition: vtkGPUInfo.h:75
vtkGPUInfo
Stores GPU VRAM information.
Definition: vtkGPUInfo.h:32