Skip to content

Instantly share code, notes, and snippets.

@Riesi
Last active April 27, 2024 20:24
Show Gist options
  • Save Riesi/3631628a946ef730b718abc9c145e30c to your computer and use it in GitHub Desktop.
Save Riesi/3631628a946ef730b718abc9c145e30c to your computer and use it in GitHub Desktop.
D3D11 Tracing and Replay with GFXReconstruct

Get GFXReconstruct with D3D11 support

The PR in question: LunarG/gfxreconstruct#1267

Issue about getting support merged: LunarG/gfxreconstruct#1393

Sadly D3D11 support isn't merged yet and the original CI build expired. So here is a backup from the PR via a CI built release. The dlls of interest for capturing D3D11 are inside the d3d12_capture folder of the corresponding zip archive.

  • 64 Bit: gfxreconstruct-v-d3d11-windows-x64-msvc.zip
  • 32 Bit: gfxreconstruct-v-d3d11-windows-x86-msvc.zip

https://github.com/Riesi/gfxreconstruct/releases/tag/v-d3d11

How to capture

Determine if the app is 32 or 64Bit and set the dll overrides (d3d11, d3d12, dxgi) as shown in:

https://github.com/doitsujin/dxvk/wiki/Using-Apitrace#on-linux

Put the following files for the correct architecture next to the game exe:

  • d3d11.dll
  • d3d12.dll
  • d3d12_capture.dll
  • dxgi.dll

Then you are ready to go! Start the game and reporduce the error you want to capture:

wine /path/to/executable/program.exe

The capture file should be next to the game exe.

How to replay and more capture info

The following link provides info on how to replay your capture and it has documentation on some capture features:

https://github.com/LunarG/gfxreconstruct/blob/dev/USAGE_desktop_D3D12.md#replaying-api-calls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment