OpenGL device management class More...
#include <Inventor/devices/SoGLDevice.h>
Public Member Functions | |
virtual unsigned long long | getTotalMemory () const |
Returns the total memory of this device in bytes. | |
virtual unsigned long long | getAvailableMemory () const |
Returns the currently available memory of this device in bytes. | |
virtual unsigned int | getLogicalUnits () const |
Returns the number of logical units on this device (i.e. | |
virtual SbString | getDriverVersion () const |
Returns the driver version of this GPU. | |
virtual SoGLDeviceSettings * | getDeviceSettings () const |
Returns an handle of the driver API allowing to modify profile of this device. | |
virtual SbString | getDeviceName () const |
Returns the name of this device. | |
SoGLScreenDevice * | getMainScreenDevice () |
Returns the main screen device connected to the GL device. | |
unsigned int | getScreenDevicesCount () |
Returns the number of screen devices connected to the GL device. | |
SoGLScreenDevice * | getScreenDevice (int index) |
Returns the SoGLScreenDevice indicated by index (starting from 0). | |
Static Public Member Functions | |
static SoGLDevice * | findFirstAvailableDevice () |
Returns the first available device found in the system. | |
static unsigned int | getDevicesCount () |
Returns the number of GPUs on the sytem. | |
static SoGLDevice * | getDevice (int index) |
Returns the SoGLDevice indicated by index (starting from 0). | |
static void | initClass () |
Initializes SoGLDevice. | |
static void | exitClass () |
Cleans SoGLDevice. | |
Static Public Member Functions inherited from SoDevice | |
static SoDevice * | find (SoDeviceFindFunction *findFunction) |
Performs a generic search on the list of devices. | |
static unsigned int | getDevicesCount () |
Returns the number of devices. | |
static SoDevice * | getDevice (int index) |
Returns the SoDevice pointed by index. | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const SoGLDevice &dev) |
Prints information about this device. | |
Additional Inherited Members | |
Public Types inherited from SoDevice | |
typedef bool | SoDeviceFindFunction(SoDevice *device) |
Find function type. | |
OpenGL device management class
This class provides functions to discover, and query information about, GPU devices available in the system through the OpenGL API. You can query, for example, the total memory available on the device.
Please see SoDevice for general information about the device classes.
See SoGLScreenDevice for information about displays attached to a GPU.
SoCpuDevice, SoGLBufferObject, SoGLContext, SoGLScreenDevice
Definition at line 62 of file SoGLDevice.h.
|
static |
Cleans SoGLDevice.
|
static |
Returns the first available device found in the system.
Since Open Inventor version 9.7.2, this is guaranteed to be the device that Open Inventor will actually use for rendering.
|
virtual |
Returns the currently available memory of this device in bytes.
IMPORTANT NOTE: This function may returns the same value as getTotalMemory() because of driver limitations.
Implements SoDevice.
|
static |
Returns the SoGLDevice indicated by index (starting from 0).
index | The index of the SoGLDevice. |
|
inlinevirtual |
|
static |
Returns the number of GPUs on the sytem.
|
virtual |
Returns an handle of the driver API allowing to modify profile of this device.
The return is depending of the driver manufacturer (NVidia, AMD, Intel...). Returns NULL if the API is not available. E.g.: For Intel driver, NULL is always returned.
|
virtual |
Returns the driver version of this GPU.
Implements SoDevice.
|
inlinevirtual |
Returns the number of logical units on this device (i.e.
the number of cores of this GPU).
Implements SoDevice.
Definition at line 254 of file SoGLDevice.h.
SoGLScreenDevice * SoGLDevice::getMainScreenDevice | ( | ) |
Returns the main screen device connected to the GL device.
SoGLScreenDevice * SoGLDevice::getScreenDevice | ( | int | index | ) |
Returns the SoGLScreenDevice indicated by index (starting from 0).
index | The index of the SoGLScreenDevice. |
unsigned int SoGLDevice::getScreenDevicesCount | ( | ) |
Returns the number of screen devices connected to the GL device.
|
inlinevirtual |
Returns the total memory of this device in bytes.
Implements SoDevice.
Definition at line 248 of file SoGLDevice.h.
|
static |
Initializes SoGLDevice.
|
friend |
Prints information about this device.
Definition at line 155 of file SoGLDevice.h.