This commit is contained in:
lizzie 2026-04-28 18:57:37 +00:00 committed by crueter
parent 2156064bdd
commit 8788034c4c

View file

@ -771,8 +771,7 @@ VkFormat Device::GetSupportedFormat(VkFormat wanted_format, VkFormatFeatureFlags
}
void Device::ReportLoss() const {
LOG_CRITICAL(Render_Vulkan, "Device loss occurred!");
LOG_CRITICAL(Render_Vulkan, "Device loss occurred! {},{}", extensions.device_fault, properties.device_fault.deviceFault);
if (extensions.device_fault) {
VkDeviceFaultCountsEXT fault_counts{
.sType = VK_STRUCTURE_TYPE_DEVICE_FAULT_COUNTS_EXT
@ -820,8 +819,7 @@ void Device::ReportLoss() const {
s += "\n";
}
LOG_INFO(Render_Vulkan, "{}", s);
} else if ()
}
// Wait for the log to flush and for Nsight Aftermath to dump the results
std::this_thread::sleep_for(std::chrono::seconds{15});
}