VTK
vtkDirectXGPUInfoList.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkDirectXGPUInfoList.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 vtkDirectXGPUInfoList_h
30#define vtkDirectXGPUInfoList_h
31
32#include "vtkRenderingOpenGLModule.h" // For export macro
33#include "vtkGPUInfoList.h"
34
35#include <d3d9.h> // DirectX, HMONITOR
36
37class VTKRENDERINGOPENGL_EXPORT vtkDirectXGPUInfoList : public vtkGPUInfoList
38{
39public:
42 void PrintSelf(ostream& os, vtkIndent indent);
43
48 virtual void Probe();
49
50protected:
52
58
66 bool ProbeInfoWithDXGI(HMONITOR m,
68
74 void ProbeInfoWithWMI(HMONITOR m,
76
83 bool GetDeviceIDFromHMonitor(HMONITOR hm,
84 WCHAR *strDeviceID,
85 int cchDeviceID);
86
87private:
88 vtkDirectXGPUInfoList(const vtkDirectXGPUInfoList&) VTK_DELETE_FUNCTION;
89 void operator=(const vtkDirectXGPUInfoList&) VTK_DELETE_FUNCTION;
90};
91
92#endif
Get GPUs VRAM information using DirectX.
vtkDirectXGPUInfoList()
Default constructor.
virtual void Probe()
Build the list of vtkInfoGPU if not done yet.
static vtkDirectXGPUInfoList * New()
void ProbeInfoWithWMI(HMONITOR m, vtkGPUInfo *info)
Probe the GPUs with the WMI api (Windows XP or later).
virtual ~vtkDirectXGPUInfoList()
bool GetDeviceIDFromHMonitor(HMONITOR hm, WCHAR *strDeviceID, int cchDeviceID)
Used by ProbeInfoWithWMI().
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
bool ProbeInfoWithDXGI(HMONITOR m, vtkGPUInfo *info)
Probe the GPUs with the DXGI api (Windows Vista or later).
Stores the list of GPUs VRAM information.
Stores GPU VRAM information.
Definition: vtkGPUInfo.h:36
a simple class to control print indentation
Definition: vtkIndent.h:40
@ info
Definition: vtkX3D.h:376