Save completed pipeline cache data during NVIDIA background builds

This commit is contained in:
automata.
2026-11-11 17:43:01 -05:00
committed by tangerineturtle1
parent 60ac5f5982
commit 27f93a314a
6 changed files with 241 additions and 22 deletions

View File

@@ -872,6 +872,7 @@ int vk_pipeline_set_indep(int on);
typedef struct { uint64_t graphics, compute, failures, hits, layouts, push_layouts, async_built, pending_skips; } VkPipeStats;
void vk_pipeline_stats(VkPipeStats *s);
void vk_pipeline_save(void); // writes the VkPipelineCache to pipeline-cache.bin next to nx2navi.exe
void vk_pipeline_save_exit(void); // final snapshot: briefly stop new cache builds, with the same bounded wait
void vk_pipeline_autosave(void); // vk_pipeline_save at most every 20 s, when pipelines were built since
void vk_pipeline_shutdown(void); // waits for background builds, saves, destroys pipelines, layouts and the
// cache; before vk_shutdown