15 releases (8 breaking)
0.9.0 | Jun 19, 2021 |
---|---|
0.7.0 | Jan 30, 2021 |
0.6.0 | Aug 16, 2020 |
0.5.3 | Jun 27, 2020 |
0.1.0 | Dec 27, 2018 |
9,447 downloads per month
Used in fewer than 31 crates
315KB
4.5K
SLoC
Low-level graphics abstraction for Rust. Mostly operates on data, not types. Designed for use by libraries and higher-level abstractions only.
This crate provides a hardware abstraction layer for graphics adapters, for both compute and graphics operations. The API design is heavily inspired by the Vulkan API, and borrows some of the terminology.
Usage
Most of the functionality is implemented in separate crates, one for each backend.
This crate only exposes a few generic traits and structures. You can import
all the necessary traits through the [prelude
][prelude] module.
The first step to using gfx-hal
is to initialize one of the available
[backends][Backend], by creating an [Instance
][Instance]. Then proceed by
enumerating the available
graphics adapters and querying their available
[features][Features] and queues.
You can use the open
method on a
PhysicalDevice
to get a logical device
handle, from which you can manage all the other device-specific
resources.
Dependencies
~5MB
~106K SLoC