-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Is your feature request related to a problem? Please describe.
Routing D3D debug messages to Rust log/console is extremely useful for diagnosing issues and debugging.
The new D3D12 backend of #1602 gets us the "crude" logic of message interception. It hooks into the VEH and manually parses the message to extract the D3D12 part, severity, etc.
Describe the solution you'd like
It may be useful to check for ID3D12InfoQueue1 and use the more specialized hookup instead. This would have to be another code path in parallel with the current VEH. It's unclear what benefit this work will get us, but worth investigating.
See full announcement - https://devblogs.microsoft.com/directx/d3d12-debug-layer-message-callback/
Describe alternatives you've considered
Just keep the current VEH logic.
Additional context
More info from Jessie Natalie:
Unfortunately, this is tied to DXGIDebug.dll, which is not one of the redistributable pieces from the Agility SDK, so it does currently require an insider Win10 or Win11 build