RenderDoc 抓幀教學:用 Global Hook 擷取 Launcher 啟動的 Steam 遊戲
使用 renderDoc launch 游戲
Tools → Settings,開啓選項
- Allow global process hooking
- Enable process injection

先設定好啓動路徑
- C:\Program Files (x86)\Steam\steamapps\common\幻世錄 Remake\HSLR.exe
然後勾選 Capture Child Processes

1、點 launch 啓動游戲

因爲 HSLR 比較特殊,是啓動器 → 啓動游戲,因此有些特殊操作,先 launch 起來,如下出現新的 PID,而且因爲開啓 Capture Child Processes,這邊出現 child processes

2、這時候點擊 Enable Global Hook,如下圖

游戲左上角此時有 RenderDoc 的 mask

3、attach runnign
游戲點擊啓動後會再開啓 HSLR.exe ,因此 renderDoc 會丟失,先點啓動,然後回到 RenderDoc

點 Attach to Running instance

雙擊游戲 process

看到 RenderDoc attach 回去了

回到游戲點 F12 截圖,再回到 RenderDoc 就能看到抓幀内容

Texture Viewer
Pipeline State

Pipeline 是繪圖管道流程,包含 IA、VS、HS、DS、GS、Rasterizer、PS、OM、CS
DS:Depth/Stencil
Mesh Viewer
在 Unity 中使用 RenderDoc
執行完 Load RenderDoc 后右側會出現攝影機,之後點這個攝影機就可以進行截圖到 RenderDoc
