This commit is contained in:
lizzie
2026-04-28 18:57:37 +00:00
committed by crueter
parent 322add8164
commit d94f83b5c0
@@ -825,8 +825,7 @@ VkFormat Device::GetSupportedFormat(VkFormat wanted_format, VkFormatFeatureFlags
} }
void Device::ReportLoss() const { 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) { if (extensions.device_fault) {
VkDeviceFaultCountsEXT fault_counts{ VkDeviceFaultCountsEXT fault_counts{
.sType = VK_STRUCTURE_TYPE_DEVICE_FAULT_COUNTS_EXT .sType = VK_STRUCTURE_TYPE_DEVICE_FAULT_COUNTS_EXT
@@ -874,8 +873,7 @@ void Device::ReportLoss() const {
s += "\n"; s += "\n";
} }
LOG_INFO(Render_Vulkan, "{}", s); LOG_INFO(Render_Vulkan, "{}", s);
} else if () }
// Wait for the log to flush and for Nsight Aftermath to dump the results // Wait for the log to flush and for Nsight Aftermath to dump the results
std::this_thread::sleep_for(std::chrono::seconds{15}); std::this_thread::sleep_for(std::chrono::seconds{15});
} }