From 876ac9b1e54c9277addebdc1c692686429707186 Mon Sep 17 00:00:00 2001 From: Rua Date: Sat, 29 Jul 2023 16:52:45 +0200 Subject: [PATCH] #2242 --- vulkano/src/device/mod.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vulkano/src/device/mod.rs b/vulkano/src/device/mod.rs index a86f96cb1a..4ff8e6a18b 100644 --- a/vulkano/src/device/mod.rs +++ b/vulkano/src/device/mod.rs @@ -1663,6 +1663,16 @@ vulkan_bitflags! { pub unsafe trait DeviceOwned { /// Returns the device that owns `self`. fn device(&self) -> &Arc; + + /// Assigns a human-readable name to `object` for debugging purposes. + /// + /// If `object_name` is `None`, a previously set object name is removed. + fn set_debug_utils_object_name(&self, object_name: Option<&str>) -> Result<(), OomError> + where + Self: VulkanObject + Sized, + { + self.device().set_debug_utils_object_name(self, object_name) + } } unsafe impl DeviceOwned for T