GraphicsPop / HLSLDecompiler

HLSL Decompiler forked from 3Dmigoto (v2: modify from repository, and fixing some bugs)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HLSLDecompiler

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.

How to integrate into renderdoc

  1. 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
  2. Renderdoc -> Pipeline State View -> Choose Any Shader Stage -> View -> Disassembly type : HLSL (DXBC->HLSL)

  3. Renderdoc -> Pipeline State View -> Choose Any Shader Stage -> Edit

  4. Modify shader as you wish, and click Refresh button to see the change

How to integrate into renderdoc(v2)

see blog : https://blog.csdn.net/linjf520/article/details/135704656

About

HLSL Decompiler forked from 3Dmigoto (v2: modify from repository, and fixing some bugs)

License:Other


Languages

Language:C++ 85.8%Language:C 13.9%Language:Batchfile 0.3%