From d2acce087786550f307f61ae9071a285f3e6fc96 Mon Sep 17 00:00:00 2001 From: assiduous Date: Mon, 7 Sep 2020 16:02:42 -0700 Subject: Flushing barriers in DeviceContextD3D12Impl::GetD3D12CommandList and DeviceContextVkImpl::GetCommandBuffer --- Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp | 1 + Graphics/GraphicsEngineVulkan/include/DeviceContextVkImpl.hpp | 1 + 2 files changed, 2 insertions(+) (limited to 'Graphics') diff --git a/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp index 5217da9e..532032f4 100644 --- a/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp +++ b/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp @@ -2104,6 +2104,7 @@ void DeviceContextD3D12Impl::TransitionBufferState(IBuffer* pBuffer, D3D12_RESOU ID3D12GraphicsCommandList* DeviceContextD3D12Impl::GetD3D12CommandList() { auto& CmdCtx = GetCmdContext(); + CmdCtx.FlushResourceBarriers(); return CmdCtx.GetCommandList(); } diff --git a/Graphics/GraphicsEngineVulkan/include/DeviceContextVkImpl.hpp b/Graphics/GraphicsEngineVulkan/include/DeviceContextVkImpl.hpp index ebca0282..e959ff4f 100644 --- a/Graphics/GraphicsEngineVulkan/include/DeviceContextVkImpl.hpp +++ b/Graphics/GraphicsEngineVulkan/include/DeviceContextVkImpl.hpp @@ -320,6 +320,7 @@ public: __forceinline VulkanUtilities::VulkanCommandBuffer& GetCommandBuffer() { EnsureVkCmdBuffer(); + m_CommandBuffer.FlushBarriers(); return m_CommandBuffer; } -- cgit v1.2.3 From 1e83468e82acc3cabf6c91c976411257e70fc24b Mon Sep 17 00:00:00 2001 From: assiduous Date: Tue, 8 Sep 2020 13:24:22 -0700 Subject: Updated third-party modules --- Graphics/GLSLTools/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'Graphics') diff --git a/Graphics/GLSLTools/CMakeLists.txt b/Graphics/GLSLTools/CMakeLists.txt index d9bc011a..e6977dc8 100644 --- a/Graphics/GLSLTools/CMakeLists.txt +++ b/Graphics/GLSLTools/CMakeLists.txt @@ -71,6 +71,7 @@ if(VULKAN_SUPPORTED) PRIVATE glslang SPIRV + SPIRV-Tools-opt ) target_include_directories(Diligent-GLSLTools -- cgit v1.2.3