Skip to content

Commit

Permalink
Add doc comment link to MTLCreateSystemDefaultDevice
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Dec 22, 2024
1 parent bae00d9 commit 839be2e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion framework-crates/objc2-metal/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,19 @@
//!
//! [apple-doc]: https://developer.apple.com/documentation/xcode/validating-your-apps-metal-api-usage/.
//!
//! NOTE: To use `MTLCreateSystemDefaultDevice` you need to link to
//! NOTE: To use [`MTLCreateSystemDefaultDevice`] you need to link to
//! `CoreGraphics`, this can be done by using `objc2-core-graphics`, or by
//! doing:
//! ```rust
//! #[link(name = "CoreGraphics", kind = "framework")]
//! extern "C" {}
//! ```
//!
#![cfg_attr(
not(feature = "MTLDevice"),
doc = "[`MTLCreateSystemDefaultDevice`]: #needs-MTLDevice-feature"
)]
//!
//!
//! ## Example
//!
Expand Down

0 comments on commit 839be2e

Please sign in to comment.