概述
-
bgfx是什麼?
跨平台,與圖形API無關的渲染庫,BSD-2許可開源。
-
支援的渲染後端
Direct3D 9
Direct3D 11
Direct3D 12
GNM (only for licensed PS4 developers, search DevNet forums for source)
Metal
OpenGL 2.1
OpenGL 3.1+
OpenGL ES 2
OpenGL ES 3.1
Vulkan
WebGL 1.0
WebGL 2.0
WebGPU/Dawn (experimental)
-
支援作業系統:
Android (14+, ARM, x86, MIPS)
asm.js/Emscripten (1.25.0)
FreeBSD
iOS (iPhone, iPad, AppleTV)
Linux
MIPS Creator CI20
OSX (10.12+)
PlayStation 4
RaspberryPi
Windows (XP, Vista, 7, 8, 10)
UWP (Universal Windows, Xbox One)
-
支援的編譯器
Clang 3.3 and above
GCC 5 and above
vs2017 and above
-
支援的語言
C/C++ API documentation
C# language API bindings #1
C#/VB/F# language API bindings #2
D language API bindings
Go language API bindings
Haskell language API bindings
Lightweight Java Game Library 3 bindings
Lua language API bindings
Nim language API bindings
Python language API bindings #1
Python language API bindings #2
Rust language API bindings
Swift language API bindings
Pascal language API bindings
-
github位址
https://github.com/bkaradzic/bgfx
-
聯系方式
GitHub Discussions
Discord Chat
GitHub @bkaradzic
Twitter @bkaradzic
-
調試和分析工具
RenderDoc
使用DX11或OpenGL渲染器時,bgfx中內建了RenderDoc的加載。可以拖動renderdoc.dll到工作目錄,它将在bgfx初始化期間自動加載。通過按F11随時捕獲幀 。
-
SDL,GLFW等
可以将bgfx與SDL,GLFW和類似的跨平台視窗庫一起使用。主要要求是視窗庫提供對用于建立Direct3D裝置或OpenGL上下文的本機視窗句柄的通路。