17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-09 03:58:55 +01:00

Report where the GPU got to when the Vulkan device is lost

This commit is contained in:
2026-10-28 20:21:00 +01:00
parent c4e23932bf
commit 8f891fdc14
10 changed files with 267 additions and 3 deletions

View File

@@ -687,6 +687,8 @@ struct vulkan14_renderer::context
void save_scene_pipelines();
// the value of the timeline the gpu reached, 0 when it can't be read
std::uint64_t completed() const;
// the value completed() read last: once the device is lost the timeline can't be read
mutable std::atomic<std::uint64_t> lastcompleted{0};
// waits until the gpu reached the value of the timeline; false: the device is lost
bool wait(std::uint64_t const Value) const;
void destroy();