File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,17 @@ impl super::DeviceShared {
27
27
///
28
28
/// # Safety
29
29
///
30
- /// It must be valid to set `object`'s debug name
30
+ /// This method inherits the safety contract from [`vkSetDebugUtilsObjectName`]. In particular:
31
+ ///
32
+ /// - `object` must be a valid handle for one of the following:
33
+ /// - An instance-level object from the same instance as this device.
34
+ /// - A physical-device-level object that descends from the same physical device as this
35
+ /// device.
36
+ /// - A device-level object that descends from this device.
37
+ /// - `object` must be externally synchronized—only the calling thread should access it during
38
+ /// this call.
39
+ ///
40
+ /// [`vkSetDebugUtilsObjectName`]: https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetDebugUtilsObjectNameEXT.html
31
41
pub ( super ) unsafe fn set_object_name ( & self , object : impl vk:: Handle , name : & str ) {
32
42
let Some ( extension) = self . extension_fns . debug_utils . as_ref ( ) else {
33
43
return ;
You can’t perform that action at this time.
0 commit comments