gfxreconstruct
gfxreconstruct copied to clipboard
Add options to save and load pipeline caches
Add three options --save-pipeline-cache
, --load-pipeline-cache
and --add-new-pipeline-caches
to manually handle pipeline cache creation/loading instead of using the ones saved in the capture file.
This is useful when pipeline creation is slow on the target system. You can generate the cache once then run the trace multiple times, or generate it on a faster device type with the same GPU and driver.
When using --save-pipeline-cache
the contents of the pipeline caches are written to the specified file just before their destruction, and just before the destruction of the last bound pipeline for caches created by --create-new-pipeline-cache
, or at the end of the program if no destruction occurs before.
When using --load-pipeline-cache
the contents of the pipeline caches are loaded just before their creation, and just before the creation of the pipeline for caches created by
--create-new-pipeline-cache
.
If set, allows gfxreconstruct to create new vkPipelineCache objects when it encounters a pipeline created without cache. This option can be used in coordination with --save-pipeline-cache
and --load-pipeline-cache
.