Skip to content

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

@armansito

Description

@armansito

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions