Translate dxbc to hlsl source code. You can use it alone, or as a renderdoc shader processing tool to decompile shader. Although the decompiled result looks very like the disassembly, you can edit the decompiled source code and refresh to see the change in Renderdoc. It's very useful while learning and analyzing rendering techniques in games if you don't have source code.
-
Put
hlsl_decompiler_wrapper.bat
andcmd_Decompiler.exe
in the same directory -
Renderdoc -> Tools -> Settings -> Shader Viewer -> Add
Field Value Name HLSLDecompiler Tool Type Custom Tool Executable Set absolute path of hlsl_decompiler_wrapper.bat
Command Line {input_file} Input/Output DXBC/HLSL -
Renderdoc -> Pipeline State View -> Choose Any Shader Stage -> Edit -> Decompile with ${Name}
-
Modify shader as you wish, and click Refresh button to see the change