Apply the same optimizations to the Vulkan backend. Smaller effect than for OpenGL.

This commit is contained in:
Henrik Rydgård committed 2023-05-23 08:54:41 +02:00
1 parent 0b9dfac844
commit 234c1f05b8
6 files changed
+44 -25

No files matched your search

+1 -1
View File
@@ -1241,7 +1241,7 @@ void VulkanQueueRunner::PerformRenderPass(const VKRStep &step, VkCommandBuffer c
VKRGraphicsPipeline *lastGraphicsPipeline = nullptr;
VKRComputePipeline *lastComputePipeline = nullptr;
auto &commands = step.commands;
const auto &commands = step.commands;
// We can do a little bit of state tracking here to eliminate some calls into the driver.
// The stencil ones are very commonly mostly redundant so let's eliminate them where possible.