diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-02-12 05:26:06 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-02-12 05:26:06 +0000 |
| commit | 17182a0e37b3b6a5c0fcca6696d83fb3d8b95ec5 (patch) | |
| tree | f3c12d1cdf8875059e14a07bf936cc4ca4be432e /Graphics/GraphicsEngineVulkan | |
| parent | Enabled folders in main cmake file (diff) | |
| download | DiligentCore-17182a0e37b3b6a5c0fcca6696d83fb3d8b95ec5.tar.gz DiligentCore-17182a0e37b3b6a5c0fcca6696d83fb3d8b95ec5.zip | |
Fixed issue in D3D12 backend: generate mips PSO was released while being used by the GPU
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp index 42ea4022..0c69d151 100644 --- a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp +++ b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp @@ -136,6 +136,10 @@ namespace Diligent auto VkCmdPool = m_CmdPool.Release(); pDeviceVkImpl->SafeReleaseDeviceObject(std::move(VkCmdPool), ~Uint64{0}); + + pDeviceVkImpl->SafeReleaseDeviceObject(std::move(m_GenerateMipsHelper), ~Uint64{0}); + pDeviceVkImpl->SafeReleaseDeviceObject(std::move(m_GenerateMipsSRB), ~Uint64{0}); + pDeviceVkImpl->SafeReleaseDeviceObject(std::move(m_DummyVB), ~Uint64{0}); // The main reason we need to idle the GPU is because we need to make sure that all command buffers are returned to the // pool. Upload heap, dynamic heap and dynamic descriptor manager return their resources to global managers and |
