-
Notifications
You must be signed in to change notification settings - Fork 47
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
When is the correct time to call GpaCopySecondarySamples in Vulkan? #58
Comments
There should be a call to When collecting sample results, the original sample Ids collected inside We do not currently have a sample of this for Vulkan, but the DX12ColorCube app has an example here:
Note: Unfortunately profiling of DX12 bundles does not currently work due to a change in the driver, but I believe the equivalent functionality should work in Vulkan. If you have any trouble getting the results, we'll be happy to help. |
Thanks for the quick response. I'm experimenting with the
specificly:
Do you have any idea on what may be the problem here? |
It appears the change that affected DX12 bundles also affected the support in Vulkan, as this is now part of the shared codebase. The secondary command lists are now handled in a different manner within the driver and the change caused our profiling extensions to not work properly. Unfortunately you will not be able to easily get this working. I will raise the priority of this with our driver teams. As an alternative GPUPerfAPI is already integrated into RenderDoc. If you use RenderDoc to capture and profile applications with secondary command lists, I believe it will work correctly. Most capture / replay tools will record the calls that are inside the secondary command list, and then substitute them in place of the VkCmdExecuteCommands call. Since the calls are now actually being replayed on the primary command list, the profiling is able to work correctly. Sorry for the inconvenience, and hopefully you can get what you need via RenderDoc. |
The document only states that for secondary command buffer we need to call this, but didn't state when is the correct time to call this. Should I call it after the
vkCmdExecuteCommands
for primary command buffer orvkEndCommandBuffer
or any other places? Is there an example for this?The text was updated successfully, but these errors were encountered: