microsoft / DirectX-Graphics-Samples

This repo contains the DirectX Graphics samples that demonstrate how to build graphics intensive applications on Windows.
MIT License
5.88k stars 2k forks source link

ResolveQueryData only have 2 items #839

Open cej4126 opened 10 months ago

cej4126 commented 10 months ago

When running in Debug mode, the following warning is created - D3D12 ERROR: ID3D12CommandQueue::ExecuteCommandLists: Cannot Resolve query that has never been performed for Index [4-15] in QueryHeap (0x0000019A4434EB90:'GPUTimerBuffer') in command list (0x0000019A44422710:'m_commandLists[2]'). [ EXECUTION ERROR #1319: RESOLVE_QUERY_INVALID_QUERY_STATE] In GPUTimer.cpp line 82 ResolveQueryData should have the range of SceneEnums::Timestamp::PostprocessPass (2) and SceneEnums::Timestamp::PostprocessPass + 1 (3). This is from GPUTimer.cpp line 119 and 130.