跨平台中间图形库-IGL
2023-07-09 09:20:22 阿炯

IGL 中间图形库 (Intermediate Graphics Library) 是一个新的控制 GPU 的跨平台库,让该接口可在除 Direct3D 之外的所有主要图形后端上运行。由Meta在2023年年中发布,采用C/C++开发并在MIT许可协议下授权使用。


Intermediate Graphics Library (IGL) is a cross-platform library that commands the GPU. It encapsulates common GPU functionality with a low-level cross-platform interface. IGL is designed to support multiple backends implemented on top of various graphics APIs (e.g. OpenGL, Metal and Vulkan) with a common interface.

其提供一个单一的低级接口,然后将常见的 GPU 功能封装到该低级跨平台接口中。该接口可在除 Direct3D 之外的所有主要图形后端上运行。

支持的渲染后端范围: Metal 2+、OpenGL 2.x、OpenGL 3.1+、OpenGL ES 2.0+、Vulkan 1.1+ 和 WebGL 2。

平台范围:Android、iOS、Linux、macOS、Windows、WebAssembly。


API 支持
WindowsLinuxmacOSiOSAndroid
Vulkan 1.1✔️✔️✔️ (MoltenVK)✖️✔️ (Quest 2/3/Pro)
OpenGL ES 2.0 - 3.0✔️ (Angle)✔️ (Angle)✔️✔️✔️
OpenGL ES 3.1 - 3.2✔️ (Angle)✔️ (Angle)✖️✖️✔️
OpenGL 3.1 - 4.6✔️✔️✖️✖️✖️
Metal 2✖️✖️✔️✔️✖️


最新版本:


项目主页:https://github.com/facebook/igl