From f0e636a16df17b8ab2d8ffeb03424b6c5bfb7452 Mon Sep 17 00:00:00 2001 From: BeastLe9enD Date: Sat, 24 Sep 2022 11:01:22 +0200 Subject: [PATCH] extensions/ext: Rename `debug_utils_set_object_name` to `set_debug_utils_object_name` and `debug_utils_set_object_tag` to `set_debug_utils_object_tag` for consistency and deprecate old ones (#661) --- Changelog.md | 1 + ash/src/extensions/ext/debug_utils.rs | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/Changelog.md b/Changelog.md index 7d0a2e0..ca1bda1 100644 --- a/Changelog.md +++ b/Changelog.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Replaced builders with lifetimes/setters directly on Vulkan structs (#602) - Inlined struct setters (#602) - Inlined `Default` impls and trivial `Instance`/`Device`/`Entry` wrapper methods (#606, #632) +- Renamed `debug_utils_set_object_name` to `set_debug_utils_object_name` and `debug_utils_set_object_tag` to `set_debug_utils_object_tag` for consistency and deprecated old ones (#661) ### Added diff --git a/ash/src/extensions/ext/debug_utils.rs b/ash/src/extensions/ext/debug_utils.rs index 784408d..46d9176 100755 --- a/ash/src/extensions/ext/debug_utils.rs +++ b/ash/src/extensions/ext/debug_utils.rs @@ -20,21 +20,43 @@ impl DebugUtils { } /// + #[deprecated = "Backwards-compatible alias containing a typo, use `set_debug_utils_object_name()` instead"] #[inline] pub unsafe fn debug_utils_set_object_name( &self, device: vk::Device, name_info: &vk::DebugUtilsObjectNameInfoEXT, + ) -> VkResult<()> { + self.set_debug_utils_object_name(device, name_info) + } + + /// + #[inline] + pub unsafe fn set_debug_utils_object_name( + &self, + device: vk::Device, + name_info: &vk::DebugUtilsObjectNameInfoEXT, ) -> VkResult<()> { (self.fp.set_debug_utils_object_name_ext)(device, name_info).result() } /// + #[deprecated = "Backwards-compatible alias containing a typo, use `set_debug_utils_object_tag()` instead"] #[inline] pub unsafe fn debug_utils_set_object_tag( &self, device: vk::Device, tag_info: &vk::DebugUtilsObjectTagInfoEXT, + ) -> VkResult<()> { + self.set_debug_utils_object_tag(device, tag_info) + } + + /// + #[inline] + pub unsafe fn set_debug_utils_object_tag( + &self, + device: vk::Device, + tag_info: &vk::DebugUtilsObjectTagInfoEXT, ) -> VkResult<()> { (self.fp.set_debug_utils_object_tag_ext)(device, tag_info).result() }