Skip to content
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

gpu-dawn: Renderdoc integration #208

Closed
silversquirl opened this issue Apr 7, 2022 · 5 comments
Closed

gpu-dawn: Renderdoc integration #208

silversquirl opened this issue Apr 7, 2022 · 5 comments
Labels
docs Improvements or additions to documentation gpu-dawn
Milestone

Comments

@silversquirl
Copy link
Contributor

It'd be nice if mach had some integration with graphics debuggers like RenderDoc.

RenderDoc has a C API for applications, which could be wrapped as part of a debug package in mach. It's useful for things like recording specific parts of a frame, allowing the application to hide or modify the RenderDoc overlay, triggering captures based on application-specific events, etc.

@slimsag
Copy link
Member

slimsag commented Apr 8, 2022

I'd love to have something like this. I think debugging WebGPU is still a bit of an up-in-the-air topic, I haven't had time to look into this deeply at all yet, though.

@silversquirl
Copy link
Contributor Author

Having spent the last few days playing with mach/gpu, I can at least say that RenderDoc works great with Dawn's Vulkan backend on Linux :)
I imagine it'd be the same with the DirectX backend on Windows, but if not, using Vulkan is always an option there too.

Unfortunately, RenderDoc doesn't support macOS - maybe there's another option that could be used there?

One thing that was slightly annoying is that Dawn doesn't appear to include user-defined labels in debug names by default - looks like there's a toggle for it (use_user_defined_labels_in_backend), but I'm not sure how feasible it is for mach to expose that option. Perhaps mach/gpu-dawn could just set it unconditionally? Maybe just in debug mode.

@slimsag
Copy link
Member

slimsag commented Apr 9, 2022

Looks like it does indeed just work with DirectX on Windows:

image

@slimsag slimsag changed the title Renderdoc integration docs: Renderdoc integration Aug 6, 2022
@slimsag slimsag added the docs Improvements or additions to documentation label Aug 6, 2022
@slimsag slimsag changed the title docs: Renderdoc integration gpu-dawn: Renderdoc integration Aug 25, 2022
@slimsag
Copy link
Member

slimsag commented Aug 25, 2022

Looks like Dawn now hides this behind a #define DAWN_USE_VKTRACE and DAWN_USE_RENDERDOC, should add these to our builds

@slimsag slimsag added this to the Mach 0.2 milestone Sep 1, 2022
@slimsag slimsag modified the milestones: Mach 0.2, Mach 0.3 Jul 4, 2023
@slimsag
Copy link
Member

slimsag commented Jul 8, 2024

#1166 (comment)

@slimsag slimsag closed this as completed Jul 8, 2024
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation gpu-dawn
Projects
None yet
Development

No branches or pull requests

2 participants