diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2021-02-08 02:37:03 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2021-02-08 02:37:03 +0000 |
| commit | 93a08dc744daff2e7150bdf5775645d94567ace1 (patch) | |
| tree | fdf6e39caf973cdaecb82ad37c1a0ccf55d887c6 /Projects/Asteroids/src/asteroids_DE.cpp | |
| parent | Updated tools module (diff) | |
| download | DiligentEngine-93a08dc744daff2e7150bdf5775645d94567ace1.tar.gz DiligentEngine-93a08dc744daff2e7150bdf5775645d94567ace1.zip | |
Reworked ExecuteCommandList(+s) to take an array of command lists instead of one
Diffstat (limited to 'Projects/Asteroids/src/asteroids_DE.cpp')
| -rw-r--r-- | Projects/Asteroids/src/asteroids_DE.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Projects/Asteroids/src/asteroids_DE.cpp b/Projects/Asteroids/src/asteroids_DE.cpp index 64fdc43..4e7a98c 100644 --- a/Projects/Asteroids/src/asteroids_DE.cpp +++ b/Projects/Asteroids/src/asteroids_DE.cpp @@ -1024,9 +1024,13 @@ void Asteroids::Render(float frameTime, const OrbitCamera& camera, const Setting // Reset mRenderSubsetsSignal while all threads are waiting for mUpdateSubsetsSignal mRenderSubsetsSignal.Reset(); + mCmdListPtrs.resize(mCmdLists.size()); + for(size_t i=0; i < mCmdLists.size(); ++i) + mCmdListPtrs[i] = mCmdLists[i]; + mDeviceCtxt->ExecuteCommandLists(static_cast<Uint32>(mCmdListPtrs.size()), mCmdListPtrs.data()); + for (auto& cmdList : mCmdLists) { - mDeviceCtxt->ExecuteCommandList(cmdList); // Release command lists now to release all outstanding references // In d3d11 mode, command lists hold references to the swap chain's back buffer // that cause swap chain resize to fail |
