From 40acc2c079309c9c084e3aedd75ed42d42bfb20e Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 17 Jan 2021 02:43:06 -0500 Subject: video_core: Resolve -Wdocumentation warnings Silences some -Wdocumentation warnings on Clang. --- src/video_core/buffer_cache/buffer_base.h | 2 +- src/video_core/vulkan_common/vulkan_memory_allocator.h | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src/video_core') diff --git a/src/video_core/buffer_cache/buffer_base.h b/src/video_core/buffer_cache/buffer_base.h index fd740c2c1..ee8602ce9 100644 --- a/src/video_core/buffer_cache/buffer_base.h +++ b/src/video_core/buffer_cache/buffer_base.h @@ -446,7 +446,7 @@ private: * @param offset Offset in bytes from the start of the buffer * @param size Size in bytes of the region to query for modifications * - * @tparam True to query GPU modified pages, false for CPU pages + * @tparam gpu True to query GPU modified pages, false for CPU pages */ template [[nodiscard]] std::pair ModifiedRegion(u64 offset, u64 size) const noexcept { diff --git a/src/video_core/vulkan_common/vulkan_memory_allocator.h b/src/video_core/vulkan_common/vulkan_memory_allocator.h index 53b3b275a..9e6cfabf9 100644 --- a/src/video_core/vulkan_common/vulkan_memory_allocator.h +++ b/src/video_core/vulkan_common/vulkan_memory_allocator.h @@ -74,11 +74,10 @@ public: MemoryAllocator(const MemoryAllocator&) = delete; /** - * Commits a memory with the specified requeriments. + * Commits a memory with the specified requirements. * * @param requirements Requirements returned from a Vulkan call. - * @param host_visible Signals the allocator that it *must* use host visible and coherent - * memory. When passing false, it will try to allocate device local memory. + * @param usage Indicates how the memory will be used. * * @returns A memory commit. */ -- cgit v1.2.3