Frame debugging
Capturing and replaying a frame is very important for debugging graphics applications. Different than a live capture, in which results are captured and displayed as your application is running, capturing means recording all the commands sent to the GPU along with their data. This includes all the draw calls, shaders, textures, buffers, and other resources used to render the frame. Replaying a frame means executing those recorded commands again. Frame replay is a powerful feature for debugging because it allows developers to closely examine the rendering process, step by step, and see exactly what’s happening at each stage. If a bug or graphical glitch occurs, frame replay can help pin down exactly where and why it’s happening. There are multiple tools for frame debugging, such as RenderDoc, PIX, NVIDIA’s Nsight Graphics, and AMD Radeon GPU Profiler.
In this recipe, we will focus on how to use RenderDoc since it is open source, cross-platform...