# bgfx

Cross\-platform rendering library that abstracts multiple graphics APIs for custom engines\.

ID: Q1243 · Revision: 1291

Type: software · License: BSD\-2\-Clause for bgfx; dependencies, bindings and bundled third\-party components retain their respective terms\.[^license] · Status: active

Website: https://bkaradzic.github.io/bgfx/



bgfx is a cross\-platform rendering library for applications that supply their own engine or framework\. It presents a graphics\-API abstraction over several native and web backends, with C/C\+\+ interfaces and separately maintained language bindings\. The application still supplies systems such as its game architecture, window integration and asset workflow\.[^overview][^build]

## Capabilities and substitutions

### Multiple rendering backends — supported

Documented backends include Direct3D, Metal, OpenGL/OpenGL ES, Vulkan and WebGL; the listed WebGPU route is Dawn Native only\.[^overview]

Use case: Implementing a cross\-platform renderer inside a custom game or graphics application · Platforms: Windows, macOS, Linux, Android, iOS, tvOS, Web · Region: Version, build and integration requirements apply

### View\-based draw ordering — supported

Draw calls are grouped into views; sequential mode preserves submission order where required, such as UI rendering\.[^api]

Use case: Implementing a cross\-platform renderer inside a custom game or graphics application · Platforms: Windows, macOS, Linux, Android, iOS, tvOS, Web · Region: Version, build and integration requirements apply

### Cross\-platform shader processing — limited

Shaderc compiles a GLSL\-like dialect with its own conventions and target profiles; arbitrary existing shaders are not automatically interchangeable\.[^tools]

Use case: Implementing a cross\-platform renderer inside a custom game or graphics application · Platforms: Windows, macOS, Linux, Android, iOS, tvOS, Web · Region: Version, build and integration requirements apply

### Window\-library integration — limited

SDL or GLFW can supply native window handles; custom integration must respect platform rendering and thread requirements\.[^overview]

Use case: Implementing a cross\-platform renderer inside a custom game or graphics application · Platforms: Windows, macOS, Linux, Android, iOS, tvOS, Web · Region: Version, build and integration requirements apply

### [Substitute for SDL](/sdl) — limited

Assessment: a substitute for SDL3's GPU rendering layer when a custom application prefers bgfx's view\-based submission model and backend set\. SDL can remain in use for windows, input and audio\. This relationship does not replace SDL as a whole or imply shader/API compatibility\.[^overview][^api][^sdl]

Use case: Implementing a cross\-platform renderer inside a custom game or graphics application · Platforms: Windows, macOS, Linux, Android, iOS, tvOS, Web · Region: Version, build and integration requirements apply

## References

[^overview]: [bgfx overview](<https://bkaradzic.github.io/bgfx/overview.html>) — Rendering\-library scope, backends, platforms and SDL/GLFW integration (vendor; retrieved 2026-10-07T19:48:46Z)

[^internals]: [bgfx internals](<https://bkaradzic.github.io/bgfx/internals.html>) — Sorted draw submission, API/render threading and frame buffering (vendor; retrieved 2026-10-07T19:49:25Z)

[^api]: [bgfx API reference](<https://bkaradzic.github.io/bgfx/bgfx.html>) — Views, sequential ordering and encoder threading (vendor; retrieved 2026-10-07T19:52:24Z)

[^tools]: [bgfx tools](<https://bkaradzic.github.io/bgfx/tools.html>) — Shaderc dialect, geometryc inputs and texturec (vendor; retrieved 2026-10-07T19:50:24Z)

[^build]: [Building bgfx](<https://bkaradzic.github.io/bgfx/build.html>) — bx/bimg dependencies, project generation and amalgamated integration (vendor; retrieved 2026-10-07T19:50:47Z)

[^license]: [bgfx license](<https://github.com/bkaradzic/bgfx/blob/master/LICENSE>) — BSD two\-clause source and binary redistribution terms (vendor; retrieved 2026-10-07T19:50:47Z)

[^sdl]: [SDL3 GPU API](<https://wiki.libsdl.org/SDL3/CategoryGPU>) — Graphics/compute abstraction, command buffers and backend shaders (vendor; retrieved 2026-10-07T19:50:24Z)

Source revision: https://substitutefor.net/entities/Q1243?revision=1291
