VTK
dox
Rendering
OpenGL
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
37
class
VTKRENDERINGOPENGL_EXPORT
vtkDirectXGPUInfoList
:
public
vtkGPUInfoList
38
{
39
public
:
40
static
vtkDirectXGPUInfoList
*
New
();
41
vtkTypeMacro(
vtkDirectXGPUInfoList
,
vtkGPUInfoList
);
42
void
PrintSelf
(ostream& os,
vtkIndent
indent);
43
48
virtual
void
Probe
();
49
50
protected
:
52
55
vtkDirectXGPUInfoList
();
56
virtual
~
vtkDirectXGPUInfoList
();
58
66
bool
ProbeInfoWithDXGI(HMONITOR m,
67
vtkGPUInfo
*
info
);
68
74
void
ProbeInfoWithWMI(HMONITOR m,
75
vtkGPUInfo
*
info
);
76
83
bool
GetDeviceIDFromHMonitor(HMONITOR hm,
84
WCHAR *strDeviceID,
85
int
cchDeviceID);
86
87
private
:
88
vtkDirectXGPUInfoList
(
const
vtkDirectXGPUInfoList
&) VTK_DELETE_FUNCTION;
89
void
operator=(
const
vtkDirectXGPUInfoList
&) VTK_DELETE_FUNCTION;
90
};
91
92
#endif
vtkDirectXGPUInfoList
Get GPUs VRAM information using DirectX.
Definition:
vtkDirectXGPUInfoList.h:37
vtkGPUInfoList::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkGPUInfoList::Probe
virtual void Probe()=0
Build the list of vtkInfoGPU if not done yet.
vtkGPUInfoList
Stores the list of GPUs VRAM information.
Definition:
vtkGPUInfoList.h:39
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkX3D::info
@ info
Definition:
vtkX3D.h:376
vtkGPUInfoList::New
static vtkGPUInfoList * New()
vtkGPUInfo
Stores GPU VRAM information.
Definition:
vtkGPUInfo.h:35
vtkGPUInfoList.h
Generated by
1.8.17