List of common graphics capabilities of the device used by a SoGLContext. More...
#include <Inventor/helpers/SbGPUCapabilities.h>
Public Types | |
| enum | Profile { COMPATIBILITY = 0x1, CORE = 0x2 } |
| enum | GpuVendor { INTEL_GPU, AMD_GPU, NVIDIA_GPU, UNKNOWN_GPU } |
Public Member Functions | |
| int | getVersion () const |
| Profile | getProfile () const |
| GpuVendor | getGpuVendor () const |
| const SbString & | getRenderer () const |
| const SbVec2i32 & | getMaxViewportSize () const |
| int | getMaxTextureSize () const |
| int | getMax3DTextureSize () const |
| int | getMaxVertexAttribs () const |
| int | getMaxFixedPipelineTextureUnits () const |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const SbGPUCapabilities &capabilities) |
List of common graphics capabilities of the device used by a SoGLContext.
This structure aims at making algorithms scalable according to the capabilities of the device used for execution. For instance, a texture can be resized if its size is greater than supported hardware size, such as:
const SbGraphicsCapabilities& caps = SoGLContext::getGraphicsCapabilities(); if (texSize > caps.maxTextureSize) resizeTexture(caps.maxTextureSize);
SbGraphicsCapabilities, SoGLContext, SoGLDevice
| GpuVendor SbGPUCapabilities::getGpuVendor | ( | ) | const |
GPU vendor.
| int SbGPUCapabilities::getMax3DTextureSize | ( | ) | const |
GL_MAX_3D_TEXTURE_SIZE.
| int SbGPUCapabilities::getMaxFixedPipelineTextureUnits | ( | ) | const |
GL_MAX_TEXTURE_UNITS (i.e.
max texture units for fixed pipeline)
| int SbGPUCapabilities::getMaxTextureSize | ( | ) | const |
GL_MAX_TEXTURE_SIZE.
| int SbGPUCapabilities::getMaxVertexAttribs | ( | ) | const |
GL_MAX_VERTEX_ATTRIBS.
| const SbVec2i32& SbGPUCapabilities::getMaxViewportSize | ( | ) | const |
GL_MAX_VIEWPORT_DIMS.
| Profile SbGPUCapabilities::getProfile | ( | ) | const |
GLContext profile.
See Profile enumeration.
| const SbString& SbGPUCapabilities::getRenderer | ( | ) | const |
Renderer name.
Format depends on GPU
| int SbGPUCapabilities::getVersion | ( | ) | const |
OpenGL version.
Ex: 440 for OpenGL 4.4
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const SbGPUCapabilities & | capabilities | |||
| ) | [friend] |
List capabilities in human readable format.
Reimplemented from SbGraphicsCapabilities.