VTK
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
29#ifndef vtkGPUInfo_h
30#define vtkGPUInfo_h
31
32#include "vtkRenderingCoreModule.h" // For export macro
33#include "vtkObject.h"
34
35class VTKRENDERINGCORE_EXPORT vtkGPUInfo : public vtkObject
36{
37public:
38 static vtkGPUInfo* New();
39 vtkTypeMacro(vtkGPUInfo, vtkObject);
40 void PrintSelf(ostream& os, vtkIndent indent);
41
43
49 vtkSetMacro(DedicatedVideoMemory, vtkTypeUInt64);
50 vtkGetMacro(DedicatedVideoMemory, vtkTypeUInt64);
52
54
60 vtkSetMacro(DedicatedSystemMemory, vtkTypeUInt64);
61 vtkGetMacro(DedicatedSystemMemory, vtkTypeUInt64);
63
65
70 vtkSetMacro(SharedSystemMemory, vtkTypeUInt64);
71 vtkGetMacro(SharedSystemMemory, vtkTypeUInt64);
73
74protected:
77
78 vtkTypeUInt64 DedicatedVideoMemory;
79 vtkTypeUInt64 DedicatedSystemMemory;
80 vtkTypeUInt64 SharedSystemMemory;
81
82private:
83 vtkGPUInfo(const vtkGPUInfo&) VTK_DELETE_FUNCTION;
84 void operator=(const vtkGPUInfo&) VTK_DELETE_FUNCTION;
85};
86
87#endif
Stores GPU VRAM information.
Definition: vtkGPUInfo.h:36
vtkTypeUInt64 DedicatedSystemMemory
Definition: vtkGPUInfo.h:79
vtkTypeUInt64 SharedSystemMemory
Definition: vtkGPUInfo.h:80
vtkTypeUInt64 DedicatedVideoMemory
Definition: vtkGPUInfo.h:78
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkGPUInfo * New()
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract base class for most VTK objects
Definition: vtkObject.h:60
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.