D3D12: Fix GetCompletedValue() returning hardcoded 0

Was returning 0 unconditionally. Now correctly returns
m_frameFence->GetCompletedValue() to report GPU progress.
This commit is contained in:
2026-03-24 00:22:37 +08:00
parent b8ce6870fe
commit 92d817e16e

View File

@@ -104,6 +104,9 @@ void D3D12CommandQueue::Wait(ID3D12Fence* fence, uint64_t value) {
} }
uint64_t D3D12CommandQueue::GetCompletedValue() { uint64_t D3D12CommandQueue::GetCompletedValue() {
if (m_frameFence) {
return m_frameFence->GetCompletedValue();
}
return 0; return 0;
} }