Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Rua committed Jul 29, 2023
1 parent 85bc9cd commit 876ac9b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions vulkano/src/device/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1663,6 +1663,16 @@ vulkan_bitflags! {
pub unsafe trait DeviceOwned {
/// Returns the device that owns `self`.
fn device(&self) -> &Arc<Device>;

/// 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<T> DeviceOwned for T
Expand Down

0 comments on commit 876ac9b

Please # to comment.