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

Add an Appendix/Wiki page for using a GPU debugger #21

Open
armansito opened this issue Feb 20, 2025 · 2 comments
Open

Add an Appendix/Wiki page for using a GPU debugger #21

armansito opened this issue Feb 20, 2025 · 2 comments

Comments

@armansito
Copy link
Collaborator

Add a basic guide for running Xcode and RenderDoc to step through the shader code, inspect resources, etc. Launching the Rust binary with Xcode (when running with the wgpu Metal backend on macOS) is very easy. I haven't tried debugging the example code with RenderDoc on Windows / Linux though.

The appendix can use the NaN propagation bug in the refraction chapter as an example. It should go through the process of launching the debugger and walk through it step-by-step and get to the root cause. For example:

Radiance Texture and Framebuffer:
Image

Where NaN is produced (0/0 in normalize):
Image

Because refract returns a null ray:
Image

@trevordblack

@trevordblack
Copy link
Collaborator

If you want I'm happy to try and step through this in renderdoc on linux and PIX on windows (haven't used PIX in any serious capactiy, now is as good an opportunity as any).

Any idea when you're gonna want this?

@armansito
Copy link
Collaborator Author

Thank you @trevordblack, that would be very helpful. It's not urgent so please don't feel pressured.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants