Browse Source

Merge pull request #675 from lameloball2813-ui/docs/rustdoc-private-links

Docs: rustdoc builds the loader, GPU and shader crates without warnings
Marvis 2 days ago
parent
commit
22700b9771

+ 1 - 1
crates/victory-gpu/src/list.rs

@@ -6,7 +6,7 @@
 //! the table as a call.
 //!
 //! Each list records onto a host command list as its methods are called
-//! (decision 0007); draw state lives in [`crate::draw`]. Methods not
+//! (decision 0007); draw state lives in `crate::draw`. Methods not
 //! written yet log once with their caller, so a run lists what to do next.
 #![allow(clippy::not_unsafe_ptr_arg_deref)]
 

+ 1 - 1
crates/victory-gpu/src/shader_cache.rs

@@ -6,7 +6,7 @@
 //! atomically; an entry that does not read back is translated again.
 //!
 //! The entry is our own encoding of [`HostShader`]: a field added to it
-//! must be added to [`encode`] and [`decode`] too (entries of older builds
+//! must be added to `encode` and `decode` too (entries of older builds
 //! are ignored anyway).
 
 use std::path::PathBuf;

+ 1 - 1
crates/victory-loader/src/lib.rs

@@ -4,7 +4,7 @@
 //! CPU, so the machine code needs no translation. What differs is the
 //! platform underneath, so the loader's job is to:
 //!
-//! 1. [`prepare`] a lightly patched copy of the image (pure, portable): mark
+//! 1. [`prepare()`] a lightly patched copy of the image (pure, portable): mark
 //!    it as a DLL, remove its entry point and import directory, and detach
 //!    its TLS callbacks, so the Windows loader maps it, relocates it,
 //!    allocates its static TLS and registers its unwind tables, but runs

+ 1 - 1
crates/victory-shader/src/emit/validator.rs

@@ -1,6 +1,6 @@
 //! The DXIL validator in `dxil.dll` (`IDxcValidator`), for tests and the
 //! offline batch. Translated shaders do not need it: they carry the
-//! container hash we compute ([`super::container::hash`]).
+//! container hash we compute (`container::hash`).
 //!
 //! The DLL is found at `VICTORY_DXIL` if set, else the newest Windows SDK's
 //! `bin\<version>\x64\dxil.dll`, else wherever `LoadLibrary` finds it.