Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gfx-rs/gfx
[maintenance mode] A low-overhead Vulkan-like GPU API for Rust.
https://github.com/gfx-rs/gfx
dx11 dx12 gfx gpu graphics graphics-apis metal opengl rust vulkan
Last synced: 5 days ago
JSON representation
[maintenance mode] A low-overhead Vulkan-like GPU API for Rust.
- Host: GitHub
- URL: https://github.com/gfx-rs/gfx
- Owner: gfx-rs
- License: apache-2.0
- Created: 2013-10-25T00:35:35.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2023-02-27T01:05:58.000Z (over 1 year ago)
- Last Synced: 2024-04-14T11:00:50.863Z (7 months ago)
- Topics: dx11, dx12, gfx, gpu, graphics, graphics-apis, metal, opengl, rust, vulkan
- Language: Rust
- Homepage: http://gfx-rs.github.io/
- Size: 25.7 MB
- Stars: 5,337
- Watchers: 123
- Forks: 551
- Open Issues: 332
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE-APACHE
Awesome Lists containing this project
- awesome-rust-cn - gfx-rs/gfx - performance, bindless graphics API for Rust. [<img src="https://img.shields.io/travis/gfx-rs/gfx/master.svg">](https://travis-ci.org/gfx-rs/gfx) (Libraries / Graphics)
- awesome-rust - gfx-rs/gfx - performance, bindless graphics API for Rust. [<img src="https://img.shields.io/travis/gfx-rs/gfx/master.svg">](https://travis-ci.org/gfx-rs/gfx) (Libraries / Graphics)
- awesome-rust - gfx-rs/gfx - performance, bindless graphics API. (Libraries / Graphics)
- awesome-rust-cn - gfx-rs/gfx
- awesome-list - gfx - overhead Vulkan-like GPU API for Rust. | gfx-rs | 4952 | (Rust)
- Blender-Guide - gfx-rs - level, cross-platform graphics and compute abstraction library in Rust. (Vulkan Tools, Libraries, and Frameworks)
- Unity-Guide - gfx-rs - level, cross-platform graphics and compute abstraction library in Rust. (Vulkan Tools, Libraries, and Frameworks / VS Code Extensions for Developer Productivity)
- AwesomeCppGameDev - gfx - overhead Vulkan-like GPU API for Rust. (Rust)
- Retro-Gaming-Guide - gfx-rs - level, cross-platform graphics and compute abstraction library in Rust. (Vulkan Tools, Libraries, and Frameworks / Enable Proton in Steam)
- Unreal-Engine-Guide - gfx-rs - level, cross-platform graphics and compute abstraction library in Rust. (Vulkan Tools, Libraries, and Frameworks / VS Code Extensions for Developer Productivity)
- awesome-rust-zh - gfx-rs/gfx - 高性能无绑定图形 Rust API。[<img src="https://img.shields.io/travis/gfx-rs/gfx/master.svg">](https://travis-ci.org/gfx-rs/gfx) (库 / 图像)
- awesome-rust - gfx-rs/gfx - performance, bindless graphics API for Rust. [<img src="https://img.shields.io/travis/gfx-rs/gfx/master.svg">](https://travis-ci.org/gfx-rs/gfx) (库 Libraries / 图像 Graphics)
- StarryDivineSky - gfx-rs/gfx - rs 是 Rust 中的一个低级、跨平台的图形和计算抽象库。从 v0.9 版本开始,gfx-hal 现在处于维护模式。GFX-HAL 的开发主要由 WGPU 驱动,WGPU 现在已经切换到自己的 GPU 抽象,称为 WGPU-HAL。 (硬件_其他 / 网络服务_其他)
README
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](https://github.com/gfx-rs/wgpu), which has now switched to its own GPU abstraction called [wgpu-hal](https://github.com/gfx-rs/wgpu/pull/1471). 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](https://github.com/gfx-rs/gfx/discussions/3768).
## hal
* `gfx-hal` which 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:
* [Vulkan](src/backend/vulkan) (runs on Linux, Windows, and Android)
* [DirectX 12](src/backend/dx12) and [DirectX 11](src/backend/dx11)
* [Metal](src/backend/metal) (runs on macOS and iOS)
* [OpenGL ES3](src/backend/gl) (runs on Linux/BSD, Android, and WASM/WebGL2)
* `gfx-warden` which is a data-driven reference test framework, used to verify consistency across all graphics backends.gfx-rs is hard to use, it's recommended for performance-sensitive libraries and engines. If that's not your domain, take a look at [wgpu-rs](https://github.com/gfx-rs/wgpu-rs) for a safe and simple alternative.
## 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](https://github.com/gfx-rs/portability).
See the [Big Picture](https://gfx-rs.github.io/2020/11/16/big-picture.html) blog post for connections.
## The old `gfx` crate (pre-ll)
This repository was originally home to the [`gfx`](https://crates.io/crates/gfx) crate, which is now deprecated. You can find the latest versions of the code for that crate in the [`pre-ll`](https://github.com/gfx-rs/gfx/tree/pre-ll) branch of this repository.
The master branch of this repository is now focused on developing [`gfx-hal`](https://crates.io/crates/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`](https://github.com/gfx-rs/wgpu-rs), 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](https://github.com/gfx-rs/gfx/issues?q=is%3Aissue+is%3Aopen+label%3Acontributor-friendly) 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](https://matrix.to/#/#gfx:matrix.org)!
## 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)at your option.
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.