mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-21 21:05:50 +12:00
Add general purpose vulkan render cache
Takes in a general `vk::Format` rather than PICA-types
This commit is contained in:
parent
d4b75deaf8
commit
4b193c8d6b
2 changed files with 15 additions and 6 deletions
|
@ -83,8 +83,9 @@ class RendererVK final : public Renderer {
|
|||
std::vector<vk::UniqueImage> screenTexture = {};
|
||||
vk::UniqueDeviceMemory framebufferMemory = {};
|
||||
|
||||
std::map<u32, vk::UniqueRenderPass> renderPassCache;
|
||||
std::map<u64, vk::UniqueRenderPass> renderPassCache;
|
||||
|
||||
vk::RenderPass getRenderPass(vk::Format colorFormat, std::optional<vk::Format> depthFormat);
|
||||
vk::RenderPass getRenderPass(PICA::ColorFmt colorFormat, std::optional<PICA::DepthFmt> depthFormat);
|
||||
|
||||
// Recreate the swapchain, possibly re-using the old one in the case of a resize
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue