From 6a4eba1153b7fc858aca895f17b57dc03f089860 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Wed, 30 Nov 2016 22:34:36 +1000 Subject: Vulkan: Replace explicit command buffer submits with wrapper function Should we ever introduce anything else that has to be done when a command buffer is executed (e.g. invalidating constants from previous commit), we don't have to update all the callers. --- Source/Core/VideoBackends/Vulkan/Renderer.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Source/Core/VideoBackends/Vulkan/Renderer.cpp') diff --git a/Source/Core/VideoBackends/Vulkan/Renderer.cpp b/Source/Core/VideoBackends/Vulkan/Renderer.cpp index f26117a084..2b8e0b63a6 100644 --- a/Source/Core/VideoBackends/Vulkan/Renderer.cpp +++ b/Source/Core/VideoBackends/Vulkan/Renderer.cpp @@ -326,6 +326,7 @@ void Renderer::BeginFrame() // Ensure that the state tracker rebinds everything, and allocates a new set // of descriptors out of the next pool. StateTracker::GetInstance()->InvalidateDescriptorSets(); + StateTracker::GetInstance()->InvalidateConstants(); StateTracker::GetInstance()->SetPendingRebind(); } -- cgit v1.2.3