facebook / igl
- вторник, 11 июля 2023 г. в 00:00:04
Intermediate Graphics Library (IGL) is a cross-platform library that commands the GPU. It provides a single low-level cross-platform interface on top of various graphics APIs (e.g. OpenGL, Metal and Vulkan).
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.
There are a lot of good options for abstracting GPU API's; each making different trade-offs. We designed IGL around the following priorities:
Windows | Linux | macOS | iOS | Android | |
---|---|---|---|---|---|
Vulkan 1.1 | |||||
OpenGL ES 2.0 - 3.0 | |||||
OpenGL ES 3.1 - 3.2 | |||||
OpenGL 3.1 - 4.6 | |||||
Metal 2 |
Before building, run the deployment scripts:
python3 deploy_content.py
python3 deploy_deps.py
These scripts download external third-party dependencies. Please check [Dependencies] for the full list.
cd build
cmake .. -G "Visual Studio 17 2022"
sudo apt-get install clang xorg-dev libxinerama-dev libxcursor-dev libgles2-mesa-dev libegl1-mesa-dev libglfw3-dev libglew-dev libstdc++-12-dev
cd build
cmake .. -G "Unix Makefiles"
cd build
cmake .. -G "Xcode" -DIGL_WITH_VULKAN=OFF
cd build
cmake .. -G Xcode -DCMAKE_TOOLCHAIN_FILE=../third-party/deps/src/ios-cmake/ios.toolchain.cmake -DPLATFORM=SIMULATOR64
The Gradle project is located within the build/android folder.
IGL is released under the MIT license, see LICENSE.md for the full text as well as third-party library acknowledgements. SparkSL Compiler is released under the SparkSL Compiler License, see LICENSE.md for full text.