-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dx12 dump resources only after draw calls #1952
base: dev
Are you sure you want to change the base?
Conversation
Add --dump-resources-before-draw command line option: Enables dumping resources before draw calls
CI gfxreconstruct build queued with queue ID 344132. |
CI gfxreconstruct build # 5780 running. |
CI gfxreconstruct build # 5780 failed. |
I'd like @panos-lunarg to have a chance to offer comment, especially on anything that might change what other users see from Vulkan dump resources. |
std::string file_name_sub = | ||
file_name + "_sub_" + std::to_string(sub_index) + (suffix == "" ? ".txt" : ("_" + suffix + ".txt")); | ||
file_name_sub += (suffix == "" ? ".txt" : ("_" + suffix + ".txt")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add (suffix == "" ? ".txt" : ("_" + suffix + ".txt"))
twice. We could have a function for (suffix == "" ? ".txt" : ("_" + suffix + ".txt"))
to reduce the duplicated code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good find. Fixed in subsequent commit. I don't have good test for this case, can you supply one?
Will squash this commit before merging to dev.
CI gfxreconstruct build queued with queue ID 355121. |
CI gfxreconstruct build # 5921 running. |
This PR should not change the behavior of Vulkan dump resources. The --dump-resources-before-draw option is being added to dx12 and any difference in Vulkan dump resources would be a bug. |
CI gfxreconstruct build # 5921 failed. |
@@ -71,6 +71,7 @@ struct ReplayOptions | |||
int32_t num_pipeline_creation_jobs{ 0 }; | |||
std::string asset_file_path; | |||
std::string dump_resources_output_dir; | |||
bool dump_resources_before{ false }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This variable is now common so it can be removed from vulkan_replay_options.h
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like @panos-lunarg to have a chance to offer comment, especially on anything that might change what other users see from Vulkan dump resources.
These changes look fine from the Vulkan perspective
No description provided.