diff --git a/vulkano/src/memory/allocator/suballocator/buddy.rs b/vulkano/src/memory/allocator/suballocator/buddy.rs index ee7d307191..deec238eec 100644 --- a/vulkano/src/memory/allocator/suballocator/buddy.rs +++ b/vulkano/src/memory/allocator/suballocator/buddy.rs @@ -55,8 +55,10 @@ use std::cmp; /// [suballocator]: Suballocator /// [internal fragmentation]: super#internal-fragmentation /// [external fragmentation]: super#external-fragmentation +/// [`FreeListAllocator`]: super::FreeListAllocator /// [the `Suballocator` implementation]: Suballocator#impl-Suballocator-for-Arc /// [region]: Suballocator#regions +/// [`BumpAllocator`]: super::BumpAllocator #[derive(Debug)] pub struct BuddyAllocator { region_offset: DeviceSize, diff --git a/vulkano/src/memory/allocator/suballocator/bump.rs b/vulkano/src/memory/allocator/suballocator/bump.rs index c9374c3f8f..579ba7f3a0 100644 --- a/vulkano/src/memory/allocator/suballocator/bump.rs +++ b/vulkano/src/memory/allocator/suballocator/bump.rs @@ -45,6 +45,7 @@ use std::iter::FusedIterator; /// Allocation is *O*(1), and so is resetting the allocator (freeing all allocations). /// /// [suballocator]: Suballocator +/// [`FreeListAllocator`]: super::FreeListAllocator /// [the `Suballocator` implementation]: Suballocator#impl-Suballocator-for-Arc /// [region]: Suballocator#regions /// [free-list]: Suballocator#free-lists diff --git a/vulkano/src/memory/allocator/suballocator/free_list.rs b/vulkano/src/memory/allocator/suballocator/free_list.rs index 32b168fdd8..7b7f036e95 100644 --- a/vulkano/src/memory/allocator/suballocator/free_list.rs +++ b/vulkano/src/memory/allocator/suballocator/free_list.rs @@ -55,6 +55,8 @@ use std::{cmp, iter::FusedIterator, marker::PhantomData, ptr::NonNull}; /// [suballocator]: Suballocator /// [free-list]: Suballocator#free-lists /// [external fragmentation]: super#external-fragmentation +/// [`BuddyAllocator`]: super::BuddyAllocator +/// [`BumpAllocator`]: super::BumpAllocator /// [the `Suballocator` implementation]: Suballocator#impl-Suballocator-for-Arc /// [internal fragmentation]: super#internal-fragmentation /// [alignment requirements]: super#alignment diff --git a/vulkano/src/memory/mod.rs b/vulkano/src/memory/mod.rs index 1595ff7574..00517a61ab 100644 --- a/vulkano/src/memory/mod.rs +++ b/vulkano/src/memory/mod.rs @@ -153,6 +153,8 @@ impl ResourceMemory { /// /// - Two resources must not alias each other, and if they do, you must ensure correct /// synchronization yourself. + /// + /// [`new_dedicated`]: Self::new_dedicated pub unsafe fn new_dedicated_unchecked(device_memory: Arc) -> Self { let size = device_memory.allocation_size(); @@ -166,9 +168,9 @@ impl ResourceMemory { /// /// # Safety /// - /// - Two resources must not alias each other (as returned by [`Buffer::memory_requirements`] - /// or [`Image::memory_requirements`]), and if they do, you must ensure correct - /// synchronization yourself. + /// - Two resources must not alias each other (as returned by + /// [`RawBuffer::memory_requirements`] or [`RawImage::memory_requirements`]), and if they do, + /// you must ensure correct synchronization yourself. /// /// # Panics /// diff --git a/vulkano/src/pipeline/mod.rs b/vulkano/src/pipeline/mod.rs index 1e094b6d24..634014c9b9 100644 --- a/vulkano/src/pipeline/mod.rs +++ b/vulkano/src/pipeline/mod.rs @@ -731,7 +731,7 @@ vulkan_enum! { ]), */ /// The value of - /// [`ConservativeRasterizationState::mode`](crate::pipeline::graphics::conservative_rasterization::ConservativeRasterizationState::mode) + /// [`ConservativeRasterizationState::mode`](crate::pipeline::graphics::rasterization::RasterizationConservativeState::mode) /// /// Set with /// [`set_conservative_rasterization_mode`](crate::command_buffer::RecordingCommandBuffer::set_conservative_rasterization_mode). @@ -741,7 +741,7 @@ vulkan_enum! { ]), /// The value of - /// [`ConservativeRasterizationState::overestimation_size`](crate::pipeline::graphics::conservative_rasterization::ConservativeRasterizationState::overestimation_size) + /// [`ConservativeRasterizationState::overestimation_size`](crate::pipeline::graphics::rasterization::RasterizationConservativeState::overestimation_size) /// /// Set with /// [`set_extra_primitive_overestimation_size`](crate::command_buffer::RecordingCommandBuffer::set_extra_primitive_overestimation_size). diff --git a/vulkano/src/query.rs b/vulkano/src/query.rs index 8b4d3be17c..804845d228 100644 --- a/vulkano/src/query.rs +++ b/vulkano/src/query.rs @@ -296,7 +296,7 @@ impl QueryPool { /// - There must be no calls to `reset*` or `get_results*` executing concurrently on another /// thread. /// - /// [`host_query_reset`]: Features::host_query_reset + /// [`host_query_reset`]: crate::device::DeviceFeatures::host_query_reset #[inline] pub unsafe fn reset(&self, range: Range) -> Result<(), Box> { self.validate_reset(range.clone())?; diff --git a/vulkano/src/shader/mod.rs b/vulkano/src/shader/mod.rs index 42f2d0ef13..efba974849 100644 --- a/vulkano/src/shader/mod.rs +++ b/vulkano/src/shader/mod.rs @@ -224,7 +224,7 @@ //! ## Mesh shading //! //! - If the shader declares the `OutputPoints` execution mode with a value greater than 0, and the -//! [`maintenance5`](Features::maintenance5) feature is not enabled on the device, then the +//! [`maintenance5`](DeviceFeatures::maintenance5) feature is not enabled on the device, then the //! shader must write to a variable decorated with `PointSize` for each output point. //! [\[09218\]] //!