https://github.com/voldien/glinfo
OpenGL Capability Information Tool
https://github.com/voldien/glinfo
capabilities feature-extraction glinfo gpu-info hardware-feature linux opengl opengl-es
Last synced: 4 months ago
JSON representation
OpenGL Capability Information Tool
- Host: GitHub
- URL: https://github.com/voldien/glinfo
- Owner: voldien
- License: gpl-3.0
- Created: 2017-07-11T13:03:04.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2025-10-17T15:50:35.000Z (8 months ago)
- Last Synced: 2025-10-18T18:15:46.055Z (8 months ago)
- Topics: capabilities, feature-extraction, glinfo, gpu-info, hardware-feature, linux, opengl, opengl-es
- Language: C++
- Homepage:
- Size: 86.9 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# glinfo
[](https://github.com/voldien/glinfo/actions/workflows/linux.yml)
[](https://www.gnu.org/licenses/gpl-3.0)
[](https://github.com/voldien/glinfo/releases)
The *glinfo* is a program for displaying OpenGL capabilities information of the current system.
The program was influenced by both the *clinfo* and *vulkaninfo* program.
## Installation
The program can be installed with the following commands.
```bash
git submodule update --init --recursive
mkdir build && cd build
cmake ..
make
```
## Dependencies
### Linux
In order to compile the program, the following Debian packages has to be installed.
```bash
apt-get install libglu1-mesa libglu1-mesa-dev libgl1-mesa-glx libgl1-mesa-dev libsdl2-dev libeigen3-dev libglew-dev libbz2-dev libzip-dev binutils-dev
```
## Example
The program can be easily executed. See the following section for an example of how the output data is formatted.
```bash
./glinfo
RENDERER: NVIDIA GeForce RTX 3070 Ti/PCIe/SSE2
VENDOR: NVIDIA Corporation
VERSION: 4.6.0 NVIDIA 525.60.11
SHADING_LANGUAGE_VERSION: 4.60 NVIDIA
GL_VERSION_1_1 : Not supported
GL_VERSION_1_2
GL_MAX_3D_TEXTURE_SIZE : 16384
GL_MAX_ELEMENTS_INDICES : 1048576
GL_MAX_ELEMENTS_VERTICES : 1048576
GL_VERSION_1_3
GL_MAX_CUBE_MAP_TEXTURE_SIZE : 32768
GL_MAX_TEXTURE_UNITS : 4
GL_VERSION_1_4
GL_MAX_TEXTURE_LOD_BIAS : 15
GL_VERSION_2_0
GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS : 192
GL_MAX_DRAW_BUFFERS : 8
GL_MAX_FRAGMENT_UNIFORM_COMPONENTS : 4096
GL_MAX_TEXTURE_COORDS : 8
GL_MAX_TEXTURE_IMAGE_UNITS : 32
GL_MAX_VARYING_FLOATS : 124
GL_MAX_VERTEX_ATTRIBS : 16
GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS : 32
GL_MAX_VERTEX_UNIFORM_COMPONENTS : 4096
GL_VERSION_3_0
GL_MAX_ARRAY_TEXTURE_LAYERS : 2048
GL_MAX_CLIP_DISTANCES : 8
GL_MAX_CLIP_PLANES : 8
GL_MAX_PROGRAM_TEXEL_OFFSET : 7
GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS : 128
GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS : 4
GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS : 4
GL_MAX_VARYING_COMPONENTS : 124
GL_MAX_VARYING_FLOATS : 124
GL_MIN_PROGRAM_TEXEL_OFFSET : -8
GL_NUM_EXTENSIONS : 400
GL_VERSION_3_1
GL_MAX_RECTANGLE_TEXTURE_SIZE : 32768
....
....
```
## License
This project is licensed under the GPL+3 License - see the [LICENSE](LICENSE) file for details
## Misc Notes
### Force NVIDIA Usage
Force the system to try to use the NVIDIA GPU. This is very useful when using a system with multiple GPUs.
```bash
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia program arguments
```