diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-08-27 17:52:29 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-08-27 17:52:29 +0000 |
| commit | 68abe2383a127febd5ec96cb2ab4ea763558ca61 (patch) | |
| tree | 16a4d29c8a5e8b16701862237ebce967fb204980 /Tests | |
| parent | Merged master (diff) | |
| download | DiligentCore-68abe2383a127febd5ec96cb2ab4ea763558ca61.tar.gz DiligentCore-68abe2383a127febd5ec96cb2ab4ea763558ca61.zip | |
Implemented duration query in D3D12
Diffstat (limited to 'Tests')
| -rw-r--r-- | Tests/DiligentCoreAPITest/src/QueryTest.cpp | 1 | ||||
| -rw-r--r-- | Tests/IncludeTest/GraphicsEngineD3D12/QueryD3D12H_test.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Tests/DiligentCoreAPITest/src/QueryTest.cpp b/Tests/DiligentCoreAPITest/src/QueryTest.cpp index aa3b3e18..6d4b3a89 100644 --- a/Tests/DiligentCoreAPITest/src/QueryTest.cpp +++ b/Tests/DiligentCoreAPITest/src/QueryTest.cpp @@ -211,6 +211,7 @@ protected: if (queryDesc.Type == QUERY_TYPE_DURATION) { // FinishFrame() must be called to finish the disjoint query + pContext->Flush(); pContext->FinishFrame(); } pContext->WaitForIdle(); diff --git a/Tests/IncludeTest/GraphicsEngineD3D12/QueryD3D12H_test.c b/Tests/IncludeTest/GraphicsEngineD3D12/QueryD3D12H_test.c index 00a1c857..fc4bc4b3 100644 --- a/Tests/IncludeTest/GraphicsEngineD3D12/QueryD3D12H_test.c +++ b/Tests/IncludeTest/GraphicsEngineD3D12/QueryD3D12H_test.c @@ -33,6 +33,6 @@ void TestQueryD3D12_CInterface(struct IQueryD3D12* pQuery) ID3D12QueryHeap* pd3d12QueryHeap = IQueryD3D12_GetD3D12QueryHeap(pQuery); (void)pd3d12QueryHeap; - Uint32 Idx = IQueryD3D12_GetQueryHeapIndex(pQuery); + Uint32 Idx = IQueryD3D12_GetQueryHeapIndex(pQuery, 0); (void)Idx; } |
