Merge pull request #12449 from liamwhite/debug-utils

renderer_vulkan: skip SetObjectNameEXT on unsupported driver
This commit is contained in:
liamwhite 2023-12-26 11:45:39 -05:00 committed by GitHub
commit 69b7100dac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -246,8 +246,10 @@ void SetObjectName(const DeviceDispatch* dld, VkDevice device, T handle, VkObjec
.objectHandle = reinterpret_cast<u64>(handle),
.pObjectName = name,
};
if (dld->vkSetDebugUtilsObjectNameEXT) {
Check(dld->vkSetDebugUtilsObjectNameEXT(device, &name_info));
}
}
} // Anonymous namespace