Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
SbGPUCapabilities Class Reference

List of common graphics capabilities of the device used by a SoGLContext. More...

#include <Inventor/helpers/SbGPUCapabilities.h>

+ Inheritance diagram for SbGPUCapabilities:

Public Types

enum  Profile {
  COMPATIBILITY = 0x1 ,
  CORE = 0x2
}
 enumeration of OpenGL profiles More...
 
enum  GpuVendor {
  INTEL_GPU ,
  AMD_GPU ,
  NVIDIA_GPU ,
  UNKNOWN_GPU
}
 enumeration of GPU vendor More...
 

Public Member Functions

int getVersion () const
 OpenGL version.
 
Profile getProfile () const
 GLContext profile.
 
GpuVendor getGpuVendor () const
 GPU vendor.
 
const SbStringgetRenderer () const
 Renderer name.
 
const SbVec2i32getMaxViewportSize () const
 GL_MAX_VIEWPORT_DIMS.
 
int getMaxTextureSize () const
 GL_MAX_TEXTURE_SIZE.
 
int getMax3DTextureSize () const
 GL_MAX_3D_TEXTURE_SIZE.
 
int getMaxVertexAttribs () const
 GL_MAX_VERTEX_ATTRIBS.
 
int getMaxFixedPipelineTextureUnits () const
 GL_MAX_TEXTURE_UNITS (i.e.
 
int getMaxSamples () const
 GL_MAX_SAMPLES (i.e.
 
- Public Member Functions inherited from SbGraphicsCapabilities
 SbGraphicsCapabilities ()
 
int getMaxTextureUnits () const
 Maximum number of tex unit allowed.
 
int getMaxImageUnits () const
 Maximum number of image unit allowed.
 
int getMaxTextureCoords () const
 Maximum number of texCoord allowed.
 
int getMaxColorTargets () const
 Maximum number of color target allowed.
 
int getMaxDrawBuffers () const
 Maximum number of draw buffers allowed.
 
int getMaxHardwareLights () const
 Maximum number of light allowed.
 
int getMaxClipPlanes () const
 Maximum number of clip plane allowed.
 
int getMinGLSLVersion () const
 Minimum version of GLSL supported.
 

Friends

std::ostream & operator<< (std::ostream &os, const SbGPUCapabilities &capabilities)
 List capabilities in human readable format.
 

Detailed Description

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:

if (texSize > caps.maxTextureSize)
resizeTexture(caps.maxTextureSize);
List of common graphics capabilities set by Open Inventor.
static const SbGPUCapabilities & getGraphicsCapabilities()
Retrieve graphics capabilities from the current bound context, if any.

SEE ALSO

SbGraphicsCapabilities, SoGLContext, SoGLDevice

Definition at line 49 of file SbGPUCapabilities.h.

Member Enumeration Documentation

◆ GpuVendor

enumeration of GPU vendor

Enumerator
INTEL_GPU 
AMD_GPU 
NVIDIA_GPU 
UNKNOWN_GPU 

Definition at line 61 of file SbGPUCapabilities.h.

◆ Profile

enumeration of OpenGL profiles

Enumerator
COMPATIBILITY 
CORE 

Definition at line 54 of file SbGPUCapabilities.h.

Member Function Documentation

◆ getGpuVendor()

GpuVendor SbGPUCapabilities::getGpuVendor ( ) const

GPU vendor.

◆ getMax3DTextureSize()

int SbGPUCapabilities::getMax3DTextureSize ( ) const

GL_MAX_3D_TEXTURE_SIZE.

◆ getMaxFixedPipelineTextureUnits()

int SbGPUCapabilities::getMaxFixedPipelineTextureUnits ( ) const

GL_MAX_TEXTURE_UNITS (i.e.

max texture units for fixed pipeline)

◆ getMaxSamples()

int SbGPUCapabilities::getMaxSamples ( ) const

GL_MAX_SAMPLES (i.e.

max number of samples for multisampling)

◆ getMaxTextureSize()

int SbGPUCapabilities::getMaxTextureSize ( ) const

GL_MAX_TEXTURE_SIZE.

◆ getMaxVertexAttribs()

int SbGPUCapabilities::getMaxVertexAttribs ( ) const

GL_MAX_VERTEX_ATTRIBS.

◆ getMaxViewportSize()

const SbVec2i32 & SbGPUCapabilities::getMaxViewportSize ( ) const

GL_MAX_VIEWPORT_DIMS.

◆ getProfile()

Profile SbGPUCapabilities::getProfile ( ) const

GLContext profile.

See Profile enumeration.

◆ getRenderer()

const SbString & SbGPUCapabilities::getRenderer ( ) const

Renderer name.

Format depends on GPU

◆ getVersion()

int SbGPUCapabilities::getVersion ( ) const

OpenGL version.

Ex: 440 for OpenGL 4.4

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const SbGPUCapabilities capabilities 
)
friend

List capabilities in human readable format.


The documentation for this class was generated from the following file: