Tips & Tricks

This page is a random hodge-podge of different tips and tricks that might not be obvious and aren’t practical to make clear in the UI - e.g. keyboard shortcuts, edge cases and suchlike.

  1. RenderDoc can be used as an image viewer! If you drag in or use file → open, you can open images in a variety of formats - .dds, .hdr, .exr, .bmp, .jpg, .png, .tga, .gif, .psd. The image will load up in RenderDoc’s texture viewer and you can use the normal controls to view it as if it were the only texture in a capture. Note that .dds files support all DXGI formats, compressed formats, arrays and mips - all of which will display as expected. If the file is modified, RenderDoc will reload it and display it. Note that changing the image’s dimensions or format will likely cause problems.

  2. If a .cap file is saved with the “auto-start” option enabled, launching RenderDoc by opening this file will cause RenderDoc to automatically trigger a capture with the given options. This is useful for saving a common path & set of options that you regularly re-run.

    For more information check out the Capture Dialog page.

  3. If you’d like to see the geometry data visualised in 3D and with each component separated out and formatted, either open “Mesh Viewer” under the window menu, or click the Go Arrow go_arrow on the vertex input attributes in the Pipeline State.

  4. Right clicking on one of the channel buttons in the texture viewer (R, G, B, A) will either select only that channel, or if it’s already the only one selected it will select all of the others. This is useful e.g. to toggle between viewing RGB and alpha, or for looking at individual channels in a packed texture or render target.

  5. Similarly, right-clicking on the ‘auto-fit’ button wand will auto-fit whenever the texture or event changes, so that the visible range is maintained as you move through the frame. This can be useful if jumping between places where the visible range is very different. Note though that by default the range will be remembered or each texture, so once you have fitted the range once for each texture you should be able to flip back and forth more easily.

  6. You can double click on a thumbnail in the texture viewer to open a locked texture tab

  7. You can close tabs by middle clicking on them.

  8. You can trigger a capture from code. renderdoc.dll exports an In-application API for this purpose, defined in renderdoc_app.h in the distributed builds.

  9. To get API debug or error messages, enable “Enable API validation” when capturing then check out the Debug Messages window.

  10. You can annotate a capture by adding bookmarks, renaming resources, and adding comments. These can all be saved and embedded in the capture, so that when you share it with someone else.

  11. Dragging an executable onto the RenderDoc window anywhere will open the Launch Executable panel with the executable path filled in.

  12. Detecting RenderDoc from your code can either be done by trying to load and use the renderdoc In-application API, or through API specific ways:

    // For D3D11 / D3D12:
    ID3D11Device *devicePointer = ...;
    IUnknown *unk = NULL;
    HRESULT hr = devicePointer->QueryInterface(MAKE_GUID({A7AA6116-9C8D-4BBA-9083-B4D816B71B78}), &unk);
    if(SUCCEEDED(hr)) { /* renderdoc is present; */ }
    
    // For OpenGL:
    // if GL_EXT_debug_tool is present (see https://renderdoc.org/debug_tool.txt)
    glIsEnabled(GL_DEBUG_TOOL_EXT);
    
    // Use reserved enumerants as the extension will not become official
    #define GL_DEBUG_TOOL_EXT                 0x6789
    #define GL_DEBUG_TOOL_NAME_EXT            0x678A
    #define GL_DEBUG_TOOL_PURPOSE_EXT         0x678B
    
    // For Vulkan
    // VK_EXT_tooling_info will be available, see the Vulkan specification
    
  13. RenderDoc can be informed about separated debug shader blobs through API specific ways - see How do I use shader debug information? for more details.

  14. More coming soon hopefully :).

Keyboard Shortcuts

  1. In the texture viewer you can hit Ctrl-G to open a popup that lets you jump to a particular pixel co-ordinate.

  2. In the texture viewer, after selecting a pixel you can use the arrow keys to ‘nudge’ one pixel at a time in any direction to fine-tune the selection.

  3. To close a capture, press Ctrl-F4. This will prompt to save if there are any unsaved changes.

  4. Anywhere in the UI, you can use Ctrl-Left and Ctrl-Right to jump to the previous or next action.

  5. If you add some bookmarks you can globally press any key from Ctrl-1 to Ctrl-0 to jump to the first 10 bookmarks.