Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.5
-
None
Description
Looks like qbackingstoredefaultcompositor.cpp only handles device lost after checking beginFrame().
QRhiD3D11::beginFrame() & QRhiD3D12::beginFrame() never return QRhi::FrameOpDeviceLost.
QRhiD3D11::beginFrame() always returns success
QRhiD3D12::beginFrame() never returns a device lost error code
Would it be possible to check for device lost on beginFrame()? (Or handle the endFrame() scenario)
https://learn.microsoft.com/en-us/windows/win32/api/d3d11/nf-d3d11-id3d11device-getdeviceremovedreason
https://learn.microsoft.com/en-us/windows/win32/api/d3d12/nf-d3d12-id3d12device-getdeviceremovedreason