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.
-
Renderdoc -> Tools -> Settings -> Shader Viewer -> Add
Field Value Name DXBC->HLSL Tool Type Custom Tool Executable Set absolute path of RenderDoc_DXBC2HLSL_shader_view_files/v2/hlsl_decompiler_wrapper.bat
Command Line {input_file} {output_file} (Notice the space between) Input/Output DXBC/HLSL -
Renderdoc -> Pipeline State View -> Choose Any Shader Stage -> View -> Disassembly type : HLSL (DXBC->HLSL)
-
Renderdoc -> Pipeline State View -> Choose Any Shader Stage -> Edit
-
Modify shader as you wish, and click Refresh button to see the change
see blog : https://blog.csdn.net/linjf520/article/details/135704656