Intermediate Graphics Library (IGL) is a cross-platform library that issues GPU commands through one low-level interface. Backends cover OpenGL, Metal, Vulkan, and other APIs.
Overview
Intermediate Graphics Library (IGL) is a cross-platform library for commanding the GPU. It wraps common GPU operations behind a single low-level interface so applications can target OpenGL, Metal, Vulkan, DirectX 12, WebGPU, and WebGL through interchangeable backends with a shared programming model.
The design favors a low-level, forward-looking API with modern concepts such as command buffers, state containers, and bindless resources, aimed at more control than classic OpenGL state machines. It is oriented toward C++ native rendering without extra language runtimes, and the authors report production use across varied Android devices and Quest headsets.
Rendering backends include Metal 2+, OpenGL 3.1+, OpenGL ES 2.0+, Vulkan 1.2, and optional DirectX 12, WebGPU, and WebGL builds. Supported client platforms named in the material include Android, iOS, Linux, macOS, Windows, and WebAssembly. Shaders may be written in GLSL, MSL, HLSL, SparkSL, or Slang, with Slang able to compile one source to several backend languages.
The distribution ships desktop samples and many render sessions demonstrating features such as bind groups, mesh shaders, indirect draws, and GPU timers. WebGPU can run via Dawn on native platforms and in the browser through Emscripten.
Key features
- Unified API over multiple GPU backends
- Command buffers and bindless-oriented design
- Metal, Vulkan, OpenGL, and DirectX 12 backends
- Optional WebGPU and WebGL backends
- Slang and multi-language shader workflows
- C++-oriented minimal interop overhead
- Samples and render-session demonstrations
- Quest and broad Android device testing cited
Use cases
- Cross-API graphics code in C++ applications
- Mobile and VR rendering on Android and Quest
- Native apps targeting Metal or Vulkan
- Browser or WASM builds via WebGPU and WebGL
- Shader portability with Slang compilation