-
Notifications
You must be signed in to change notification settings - Fork 326
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
Add Pipeline as a ResourceType and implement it for VkPipeline's #2069
Conversation
cmd/gapit/flags.go
Outdated
@@ -265,4 +265,12 @@ type ( | |||
Gapis GapisFlags | |||
At flags.U64Slice `help:"command/subcommand index to get the memory after. Empty for last"` | |||
} | |||
PipelineFlags struct { | |||
Gapis GapisFlags | |||
At flags.U64Slice `help:"command/subcommand index to get the memory after. Empty for last"` |
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.
s/memory/pipeline?
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.
Done
@AWoloszyn KhronosGroup/SPIRV-Reflect#56 has been merged so this is ready to go |
SPIRV-Reflect offers tools to analyze the interface exposed by a spirv module. It's used here to parse the descriptor sets that a given entry point of a module uses.
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 looks great, If you can rebase and squash some of the commits, once the bots are green I will merge it.
6111267
to
7f8ffb4
Compare
Pipeline's ResourceData returns their shaders and their bound data. The Vulkan implementation relies on https://github.com/chaoticbob/SPIRV-Reflect, although until KhronosGroup/SPIRV-Reflect#56 and KhronosGroup/SPIRV-Reflect#58 are merged, https://github.com/iburinoc/SPIRV-Reflect is being used as upstream.
Additionally, a gapit verb has been added to access the functionality. It prints out data on the most-recently bound pipeline for either graphics or compute, given a point in a trace.