mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-25 11:49:04 +02:00
[vulkan] Invalidate scheduler state after rendering in multiple Vulkan draw functions
This commit is contained in:
parent
d06eb3f52f
commit
d6a889828f
5 changed files with 5 additions and 0 deletions
|
|
@ -602,6 +602,7 @@ void BlitImageHelper::BlitColor(const Framebuffer* dst_framebuffer, VkImageView
|
||||||
cmdbuf.Draw(3, 1, 0, 0);
|
cmdbuf.Draw(3, 1, 0, 0);
|
||||||
cmdbuf.EndRenderPass();
|
cmdbuf.EndRenderPass();
|
||||||
});
|
});
|
||||||
|
scheduler.InvalidateState();
|
||||||
}
|
}
|
||||||
|
|
||||||
void BlitImageHelper::BlitDepthStencil(const Framebuffer* dst_framebuffer,
|
void BlitImageHelper::BlitDepthStencil(const Framebuffer* dst_framebuffer,
|
||||||
|
|
|
||||||
|
|
@ -206,6 +206,7 @@ VkImageView FSR::Draw(Scheduler& scheduler, size_t image_index, VkImage source_i
|
||||||
|
|
||||||
TransitionImageLayout(cmdbuf, rcas_image, VK_IMAGE_LAYOUT_GENERAL);
|
TransitionImageLayout(cmdbuf, rcas_image, VK_IMAGE_LAYOUT_GENERAL);
|
||||||
});
|
});
|
||||||
|
scheduler.InvalidateState();
|
||||||
|
|
||||||
return *images.image_views[Rcas];
|
return *images.image_views[Rcas];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -140,6 +140,7 @@ void FXAA::Draw(Scheduler& scheduler, size_t image_index, VkImage* inout_image,
|
||||||
cmdbuf.EndRenderPass();
|
cmdbuf.EndRenderPass();
|
||||||
TransitionImageLayout(cmdbuf, output_image, VK_IMAGE_LAYOUT_GENERAL);
|
TransitionImageLayout(cmdbuf, output_image, VK_IMAGE_LAYOUT_GENERAL);
|
||||||
});
|
});
|
||||||
|
scheduler.InvalidateState();
|
||||||
|
|
||||||
*inout_image = *image.image;
|
*inout_image = *image.image;
|
||||||
*inout_image_view = *image.image_view;
|
*inout_image_view = *image.image_view;
|
||||||
|
|
|
||||||
|
|
@ -272,6 +272,7 @@ void SMAA::Draw(Scheduler& scheduler, size_t image_index, VkImage* inout_image,
|
||||||
cmdbuf.EndRenderPass();
|
cmdbuf.EndRenderPass();
|
||||||
TransitionImageLayout(cmdbuf, output_image, VK_IMAGE_LAYOUT_GENERAL);
|
TransitionImageLayout(cmdbuf, output_image, VK_IMAGE_LAYOUT_GENERAL);
|
||||||
});
|
});
|
||||||
|
scheduler.InvalidateState();
|
||||||
|
|
||||||
*inout_image = *images.images[Output];
|
*inout_image = *images.images[Output];
|
||||||
*inout_image_view = *images.image_views[Output];
|
*inout_image_view = *images.image_views[Output];
|
||||||
|
|
|
||||||
|
|
@ -101,6 +101,7 @@ void WindowAdaptPass::Draw(RasterizerVulkan& rasterizer, Scheduler& scheduler, s
|
||||||
|
|
||||||
cmdbuf.EndRenderPass();
|
cmdbuf.EndRenderPass();
|
||||||
});
|
});
|
||||||
|
scheduler.InvalidateState();
|
||||||
}
|
}
|
||||||
|
|
||||||
VkDescriptorSetLayout WindowAdaptPass::GetDescriptorSetLayout() {
|
VkDescriptorSetLayout WindowAdaptPass::GetDescriptorSetLayout() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue