RenderDoc supports writing custom shaders to decode the viewed texture, which can be useful to e.g. colourise stencil values or decode a packed gbuffer texture.
In the toolbar in the texture viewer, select custom instead of RGBA on the left side, and use the UI to create a new shader. The docs contain full listings of available constants and resources to bind.