Getting Started | Documentation | Blog | Funding gfx-rs gfx-rs is a low-level, cross-platform graphics and compute abstraction library in Rust. It consists of the following components: gfx-hal deprecation As…
Getting Started | Documentation | Blog | Funding
gfx-rs
gfx-rs is a low-level, cross-platform graphics and compute abstraction library in Rust. It consists of the following components:
gfx-hal deprecation
As of the v0.9 release, gfx-hal is now in maintenance mode. gfx-hal development was mainly driven by wgpu, which has now switched to its own GPU abstraction called wgpu-hal. For this reason, gfx-hal development has switched to maintenance only, until the developers figure out the story for gfx-portability. Read more about the transition in #3768.
hal
gfx-halwhich is gfx's hardware abstraction layer: a Vulkan-ic mostly unsafe API which translates to native graphics backends.gfx-backend-*which contains graphics backends for various platforms:
gfx-wardenwhich is a data-driven reference test framework, used to verify consistency across all graphics backends.
Hardware Abstraction Layer
The Hardware Abstraction Layer (HAL), is a thin, low-level graphics and compute layer which translates API calls to various backends, which allows for cross-platform support. The API of this layer is based on the Vulkan API, adapted to be more Rust-friendly.
Currently HAL has backends for Vulkan, DirectX 12/11, Metal, and OpenGL/OpenGL ES/WebGL.
The HAL layer is consumed directly by user applications or libraries. HAL is also used in efforts such as gfx-portability.
See the Big Picture blog post for connections.
The old gfx crate (pre-ll)
This repository was originally home to the gfx crate, which is now deprecated. You can find the latest versions of the code for that crate in the pre-ll branch of this repository.
The master branch of this repository is now focused on developing gfx-hal and its associated backend and helper libraries, as described above. gfx-hal is a complete rewrite of gfx, but it is not necessarily the direct successor to gfx. Instead, it serves a different purpose than the original gfx crate, by being "lower level" than the original. Hence, the name of gfx-hal was originally ll, which stands for "lower level", and the original gfx is now referred to as pre-ll.
The spiritual successor to the original gfx is actually wgpu, which stands on a similar level of abstraction to the old gfx crate, but with a modernized API that is more fit for being used over Vulkan/DX12/Metal. If you want something similar to the old gfx crate that is being actively developed, wgpu is probably what you're looking for, rather than gfx-hal.
Contributing
We are actively looking for new contributors and aim to be welcoming and helpful to anyone that is interested! We know the code base can be a bit intimidating in size and depth at first, and to this end we have a label on the issue tracker which marks issues that are new contributor friendly and have some basic direction for completion in the issue comments. If you have any questions about any of these issues (or any other issues) you may want to work on, please comment on GitHub and/or drop a message in our Matrix chat!
License
[license]: #license
This repository is licensed under either of
- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Members
-
wgpu ★ PINNED
A cross-platform, safe, pure-Rust graphics API.
Rust ★ 17k 1d agoExplain → -
metal-rs ★ PINNED
Deprecated Rust bindings for Metal
Rust ★ 695 2d agoExplain → -
wgpu-native ★ PINNED
Native WebGPU implementation based on wgpu-core
Rust ★ 1.3k 5d agoExplain → -
rspirv ★ PINNED
Rust implementation of SPIR-V module processing functionalities
Rust ★ 493 3mo agoExplain → -
gfx
[maintenance mode] A low-overhead Vulkan-like GPU API for Rust.
Rust ★ 5.4k 3y agoExplain → -
wgpu-rs ▣
Rust bindings to wgpu native library
Rust ★ 1.7k 5y agoExplain → -
naga ▣
Universal shader translation in Rust
Rust ★ 1.6k 2y agoExplain → -
portability
Vulkan Portability Implementation
C ★ 390 3y agoExplain → -
genmesh
A library of mesh generation utilities.
Rust ★ 131 3y agoExplain → -
gfx-ocean ▣
Compute based ocean simulation with gfx_hal :ocean:
Rust ★ 119 3y agoExplain → -
meetup
Rust Graphics meetups
★ 68 4y agoExplain → -
d3d12-rs ▣
Rust wrapper for D3D12
Rust ★ 35 2y agoExplain → -
gfx-memory ▣
[DEPRECATED] Memory management library of gfx_hal
Rust ★ 27 7y agoExplain → -
nv-flip-rs
Bindings to Nvidia Labs's ꟻLIP image comparison and error visualization library
Rust ★ 22 21d agoExplain → -
gfx-extras ▣
DEPRECATED: Extra libraries to help working with gfx-hal
Rust ★ 20 5y agoExplain → -
wgpu-rs.github.io
Hosting for wgpu.rs website
HTML ★ 19 1d agoExplain → -
gfx-render ▣
No description.
Rust ★ 18 7y agoExplain → -
gfx-rs.github.io
Blog for the gfx-rs project
HTML ★ 16 2y agoExplain → -
gfx_scene ▣
deprecated
Rust ★ 15 9y agoExplain → -
gfx_gl ▣
An OpenGL loader tailored to gfx-rs's needs.
Rust ★ 14 6y agoExplain → -
range-alloc
No description.
Rust ★ 11 3mo agoExplain → -
wanari ▣
Khronos ANARI implementation in Rust based on wgpu-rs
Rust ★ 9 5y agoExplain → -
draw_state ▣
deprecated
Rust ★ 6 8y agoExplain → -
subscriber ▣
Tracing subscribers to help with wgpu
Rust ★ 5 5y agoExplain → -
stories
wgpu stories blog
Ruby ★ 5 5y agoExplain → -
gfx_macros ▣
deprecated
Rust ★ 4 11y agoExplain → -
SPIRV-Cross-Minimal ⑂ ▣
SPIRV-Cross is a practical tool and library for performing reflection on SPIR-V and disassembling SPIR-V back to high level languages.
C++ ★ 2 6y agoExplain → -
cherry ▣
Fork of Android Cherry tool for Vulkan CTS tracking
Go ★ 2 8y agoExplain → -
ci-build
Automated action for building/hosting components we need in CI
★ 2 7mo agoExplain → -
gfx_s2_burndown
No description.
HTML ★ 0 2mo agoExplain →
No repos match these filters.