17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-08 23:07:38 +01:00

Name the buffer or image a Vulkan device fault hit in the device-lost report

This commit is contained in:
2026-10-29 18:04:38 +01:00
parent 91c6324965
commit 325be54b2c
4 changed files with 224 additions and 0 deletions

View File

@@ -102,6 +102,11 @@ class device
// what the driver tells of the fault which lost the device (VK_EXT_device_fault, where the device has it): its description, the
// addresses the gpu went wrong at and what the vendor adds. empty without the extension
std::string fault_report() const;
// VK_EXT_device_fault is on
bool fault_enabled() const
{
return m_device_fault;
}
private:
static queue_families find_queue_families(VkInstance Instance, VkPhysicalDevice Physical, VkSurfaceKHR Surface, std::uint32_t &TimestampBits);