VTK  9.1.0
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
32class VTKRENDERINGCORE_EXPORT vtkGPUInfo : public vtkObject
33{
34public:
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
71protected:
73 ~vtkGPUInfo() override;
74
75 vtkTypeUInt64 DedicatedVideoMemory;
76 vtkTypeUInt64 DedicatedSystemMemory;
77 vtkTypeUInt64 SharedSystemMemory;
78
79private:
80 vtkGPUInfo(const vtkGPUInfo&) = delete;
81 void operator=(const vtkGPUInfo&) = delete;
82};
83
84#endif
Stores GPU VRAM information.
Definition: vtkGPUInfo.h:33
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeUInt64 DedicatedSystemMemory
Definition: vtkGPUInfo.h:76
~vtkGPUInfo() override
vtkTypeUInt64 SharedSystemMemory
Definition: vtkGPUInfo.h:77
vtkTypeUInt64 DedicatedVideoMemory
Definition: vtkGPUInfo.h:75
static vtkGPUInfo * New()
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract base class for most VTK objects
Definition: vtkObject.h:82