27 releases (17 breaking)

0.27.0 Oct 25, 2023
0.26.0 Jul 21, 2023
0.25.0 May 19, 2023
0.24.0 Jul 1, 2022
0.0.1 Apr 6, 2015

#8 in Graphics APIs

Download history 27034/week @ 2023-12-06 24888/week @ 2023-12-13 20537/week @ 2023-12-20 17823/week @ 2023-12-27 26876/week @ 2024-01-03 24849/week @ 2024-01-10 33689/week @ 2024-01-17 31596/week @ 2024-01-24 30305/week @ 2024-01-31 35323/week @ 2024-02-07 35136/week @ 2024-02-14 33763/week @ 2024-02-21 33656/week @ 2024-02-28 30675/week @ 2024-03-06 29275/week @ 2024-03-13 29880/week @ 2024-03-20

129,108 downloads per month
Used in 1,417 crates (31 directly)

MIT/Apache

3MB
9K SLoC

metal-rs

Actions Status Crates.io

Unsafe Rust bindings for the Metal 3D Graphics API.

Documentation

Note that docs.rs will fail to build the (albeit limited) documentation for this crate! They build in a Linux container, but of course this will only compile on MacOS.

Please build the documentation yourself with cargo docs.

Examples

The examples directory highlights different ways of using the Metal graphics API for rendering and computation.

Examples can be run using commands such as:

# Replace `window` with the name of the example that you would like to run
cargo run --example window

License

Licensed under either of

at your option.

Contribution

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.

Dependencies