diff --git a/crates/metal2vulkan-conformance/src/cases/shared_creator_formats.rs b/crates/metal2vulkan-conformance/src/cases/shared_creator_formats.rs index caf0c7837..ced08cdfd 100644 --- a/crates/metal2vulkan-conformance/src/cases/shared_creator_formats.rs +++ b/crates/metal2vulkan-conformance/src/cases/shared_creator_formats.rs @@ -202,7 +202,7 @@ mod site { const METAL_NIL: &str = "Nil"; /// The variant name **our** side records a typed `Error::Nil` under -/// ([`crate::case::Failure::of`]). +/// ([`crate::case::Failure::of_rt`]). const OUR_NIL: &str = "Error::Nil"; /// One case of the family: a table of descriptors, each asked of the shared creator. diff --git a/crates/metal2vulkan-runtime/src/device.rs b/crates/metal2vulkan-runtime/src/device.rs index 8d4b9fe26..714d915e7 100644 --- a/crates/metal2vulkan-runtime/src/device.rs +++ b/crates/metal2vulkan-runtime/src/device.rs @@ -459,7 +459,7 @@ pub struct DeviceOptions { /// the consumer's helper that the runtime only stores with a memory breach /// ([`StageBreach::Memory`](crate::StageBreach::Memory)) and compares at a make; the runtime /// takes no other path by it, on any device. At the make, a memory breach kept under a lower - /// ceiling is a miss ([`Error::StageUnfilled`](crate::Error::StageUnfilled)), so the helper is + /// ceiling is a miss ([`Error::StageUnfilled`]), so the helper is /// asked again under this one; one kept under this ceiling or a higher one refuses. A memory /// breach entry that holds no ceiling counts as kept under 0, the default, so on a device /// given 0 every memory breach refuses. diff --git a/crates/metal2vulkan-runtime/src/stage.rs b/crates/metal2vulkan-runtime/src/stage.rs index c967d3f2d..adc208c4e 100644 --- a/crates/metal2vulkan-runtime/src/stage.rs +++ b/crates/metal2vulkan-runtime/src/stage.rs @@ -182,7 +182,7 @@ pub(crate) struct Heavy { } /// The entry weight past which a stage is compiled only in the consumer's helper: the translator's -/// `COMPILED_STAGE_WEIGHT`, or, in a device test, one the test sets ([`TEST_BOUND`]), so a small +/// `COMPILED_STAGE_WEIGHT`, or, in a device test, one the test sets (`TEST_BOUND`), so a small /// kernel passes it. pub(crate) fn bound() -> u64 { #[cfg(all(test, any(m2v_gpu, m2v_cpu_icd)))] diff --git a/crates/metal2vulkan/src/lower/arith/libm/mod.rs b/crates/metal2vulkan/src/lower/arith/libm/mod.rs index 6604d4440..6092fedbd 100644 --- a/crates/metal2vulkan/src/lower/arith/libm/mod.rs +++ b/crates/metal2vulkan/src/lower/arith/libm/mod.rs @@ -297,7 +297,7 @@ impl Lib { } /// Metal's precise `fmod` of `x` and `y` (`float` lanes of form `f`) by its routine, one call - /// per lane; `None` where the module defines no routine ([`Lib::instructions`]). + /// per lane; `None` where the module defines no routine (a unit test's `Lib::instructions`). pub fn fmod( &self, fb: &mut FunctionBuilder<'_>, diff --git a/crates/metal2vulkan/src/lower/dispatch.rs b/crates/metal2vulkan/src/lower/dispatch.rs index 2caddf7e5..24c6a32d1 100644 --- a/crates/metal2vulkan/src/lower/dispatch.rs +++ b/crates/metal2vulkan/src/lower/dispatch.rs @@ -537,7 +537,7 @@ pub struct DispatchPlan { /// `SpecKey::DeepThreadgroup`, under which its threadgroup runs as one row (the module docs). pub deep: bool, /// A kernel whose private arena lives in device memory (`memory::plan::ArenaLayout::device`): - /// each invocation reaches its slot by its index in its dispatch ([`arena_slot`]). + /// each invocation reaches its slot by its index in its dispatch ([`KernelDecl::arena_slot`]). pub private_arena: bool, } diff --git a/crates/metal2vulkan/src/lower/fragment/fetch.rs b/crates/metal2vulkan/src/lower/fragment/fetch.rs index 860126ede..95d4683cd 100644 --- a/crates/metal2vulkan/src/lower/fragment/fetch.rs +++ b/crates/metal2vulkan/src/lower/fragment/fetch.rs @@ -129,7 +129,7 @@ pub(crate) fn unorm8_format(pf: crate::metal::PixelFormat) -> bool { } /// Whether `pf` is a packed 16-bit unorm format (`metal::format::WordAttachment::Packed16`), whose -/// blend Metal computes in `half` over its decoded codes ([`extended_range::Blend::packed16`]). +/// blend Metal computes in `half` over its decoded codes. pub(crate) fn packed16_format(pf: crate::metal::PixelFormat) -> bool { matches!( WordAttachment::layout(pf), diff --git a/crates/metal2vulkan/src/lower/mesh/mod.rs b/crates/metal2vulkan/src/lower/mesh/mod.rs index 984358f53..370dd2e15 100644 --- a/crates/metal2vulkan/src/lower/mesh/mod.rs +++ b/crates/metal2vulkan/src/lower/mesh/mod.rs @@ -1313,7 +1313,7 @@ pub const BUILTINS: [KernelBuiltin; 2] = [ KernelBuiltin::ThreadsPerThreadgroup, ]; -/// Whether the entry has a wrapper that reads [`builtins`]. +/// Whether the entry has a wrapper that reads [`BUILTINS`]. pub fn wraps(plan: &MeshPlan) -> bool { plan.object || plan.mesh.is_some() } diff --git a/crates/metal2vulkan/src/lower/stage_io/plan.rs b/crates/metal2vulkan/src/lower/stage_io/plan.rs index bfb46903e..eff770a2d 100644 --- a/crates/metal2vulkan/src/lower/stage_io/plan.rs +++ b/crates/metal2vulkan/src/lower/stage_io/plan.rs @@ -1418,7 +1418,7 @@ enum IndexStore { /// device. /// /// An index not shown alike is refused because Metal gives it no answer to match: "You must -/// return the same value of [[render_target_array_index]] for every vertex in a primitive. If +/// return the same value of `[[render_target_array_index]]` for every vertex in a primitive. If /// values differ, the behavior and value passed to the fragment function are undefined." (the /// Metal Shading Language specification, and the same of `[[viewport_array_index]]`). It is not /// stored to its builtin as written because Vulkan asks a stage that writes `Layer` to "write the