In PIX, Select Target Process => Launch Win32 and set the following 2 entries according to where Canary / Chrome is installed:
- Path to executable: "C:\Users\alexis\AppData\Local\Google\Chrome SxS\Application\chrome.exe"
- Working directory: "C:\Users\alexis\AppData\Local\Google\Chrome SxS\Application"
- Command line arguments: --disable-gpu-sandbox --disable-direct-composition
- You can add those arguments if you want to be able to see the disassembled shader code: --enable-dawn-features=emit_hlsl_debug_symbols,disable_symbol_renaming
- Launch Suspended unchecked, Launch for GPU capture and Force D3D11On12 checked
Then click on "Launch".
Important: you should close all your Canary / Chrome windows/processes before clicking on the "Launch" button!
To Capture a frame (GPU Capture frame):
- Choose Present-to-Present
- Click on the Capture icon
- You probably need to set Capture frame count to 2 (I had to), otherwise the capture won't contain your commands, only those of Canary / Chrome
- If you do other captures you can get an "An error occurred during capture" popup: just close it, the capture does work (at least it works for me).
If you want the debug markers to work inside PIX, you need to perform those steps: https://dawn.googlesource.com/dawn/+/refs/heads/main/docs/debug_markers.md
Notes:
- I could not locate the libdawn_native.dll file: I have simply copied the WinPixEventRuntime.dll file into "C:\Users\alexis\AppData\Local\Google\Chrome SxS\Application<version>" and it did work
- If you update Canary / Chrome, this file will be removed, you will have to copy it again
How to show and debug shader source code?
![屏幕截图 2024-02-09 180658](https://private-user-images.githubusercontent.com/25508292/303622520-1bdc814e-d687-4ddb-bb66-8b8d208bdba3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAxNTA1NzIsIm5iZiI6MTcyMDE1MDI3MiwicGF0aCI6Ii8yNTUwODI5Mi8zMDM2MjI1MjAtMWJkYzgxNGUtZDY4Ny00ZGRiLWJiNjYtOGI4ZDIwOGJkYmEzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA1VDAzMzExMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIxMzgwMzJjYTZlZjIyYmZjYWMwZTE5NTYyMTczMTc5OTQyMGQzN2Y1MDU2MTAzOGU5NzYyZmMxMzgwZTBlMDImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.rJcQI1XGcrnuhEpM6PEtInBCCCD_NAk1PYZ76veTb2M)
I jump to the Debug interface through the debug pixel button.like this:
I saw the source option in some tutorials, but I can't find it.like this:
![屏幕截图 2024-02-09 182023](https://private-user-images.githubusercontent.com/25508292/303622795-5bcd795c-c99b-48e1-acfd-dd20d6209ebe.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAxNTA1NzIsIm5iZiI6MTcyMDE1MDI3MiwicGF0aCI6Ii8yNTUwODI5Mi8zMDM2MjI3OTUtNWJjZDc5NWMtYzk5Yi00OGUxLWFjZmQtZGQyMGQ2MjA5ZWJlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA1VDAzMzExMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUwZTAxZmI0NmY1ODZhNzQyMTc3YmIwOWU1NDU3OTVjMTc0ZWMxYTM1ODNlOTRlZTdhZDE5NjhkMjlmYmQ0OWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.5ZckL154yLhVveplbTphTRw5APOll76tEMQhBb6Zaz4)
Command line parameters:
Thanks for your help.