Section: Visualization Toolkit Rendering Classes
To create an instance of class vtkGPUInfoList, simply invoke its constructor as follows
obj = vtkGPUInfoList
obj
is an instance of the vtkGPUInfoList class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkGPUInfoList = obj.NewInstance ()
vtkGPUInfoList = obj.SafeDownCast (vtkObject o)
obj.Probe ()
- Build the list of vtkInfoGPU if not done yet.
Default implementation created an empty list. Useful if there is no
implementation available for a given architecture yet.
\post probed: IsProbed()
bool = obj.IsProbed ()
- Tells if the operating system has been probed. Initial value is false.
int = obj.GetNumberOfGPUs ()
- Return the number of GPUs.
\pre probed: IsProbed()
vtkGPUInfo = obj.GetGPUInfo (int i)
- Return information about GPU i.
\pre probed: IsProbed()
\pre valid_index: i>=0 && i<GetNumberOfGPUs()
\post result_exists: result!=0