gfx-rs / gfx

[maintenance mode] A low-overhead Vulkan-like GPU API for Rust.
http://gfx-rs.github.io/
Apache License 2.0
5.35k stars 551 forks source link

Dx12 backend fails to enumerate adapters while running in the Visual Studio graphics debugger #3710

Closed Imberflur closed 3 years ago

Imberflur commented 3 years ago

Short info header:

cwfitzgerald commented 3 years ago

Does DX11 work while running the debugger?

Imberflur commented 3 years ago

Does DX11 work while running the debugger?

It does appear to select an adapter! Looks like it has other issues afterwards though: PanicInfo: panicked at 'not implemented', D:\veloren\gfx\src\backend\dx11\src\device.rs:771:18

cwfitzgerald commented 3 years ago

The next thing to test is if running the dx12 examples works. If they don't, there's nothing we can't do anything about.

kvark commented 3 years ago

Looks like E_FAIL coming internally.

Imberflur commented 3 years ago

I tested out this sample: https://github.com/microsoft/DirectX-Graphics-Samples/tree/master/Samples/Desktop/D3D12HelloWorld/src/HelloTriangle. And it also failed only when running in the graphics debugger: image

Interestingly, I got a little informational note this time: image which links to https://docs.microsoft.com/en-us/visualstudio/debugger/graphics/visual-studio-graphics-diagnostics-directx-12?view=vs-2019

I would say we can close this issue since it appears to no longer be supported?