metal-rs icon indicating copy to clipboard operation
metal-rs copied to clipboard

Add documentation on debugging by generating a `.gpuTrace` file

Open chinedufn opened this issue 4 years ago • 3 comments

https://github.com/gfx-rs/metal-rs/pull/151#issuecomment-653904768

This approach seems like less of a hassle since you don't need to wire up build configurations in Xcode.

Xcode becomes nothing more than a place to view your .gpuTrace file.

chinedufn avatar Jul 05 '20 15:07 chinedufn

Although I suppose since this is just code it should be incorporated into an example.

Perhaps we can edit the window example to capture the first few frames to a .gpuTrace file.

Then have the debugging docs simply introduce that this is possible and then link to the window example in order to see how it's done.

chinedufn avatar Jul 05 '20 15:07 chinedufn

That sounds great!

kvark avatar Jul 06 '20 18:07 kvark

Note to self - Xcode is required in order to generate a .gpuTrace https://github.com/gfx-rs/metal-rs/pull/155#discussion_r451534460

So the docs can demonstrate how ti generate a trace file using the least amount of Xcode-ing possible.

chinedufn avatar Dec 15 '20 01:12 chinedufn