Manually tracking image layout transitions

This commit is contained in:
Antoine Pilote
2025-01-10 13:20:22 -05:00
parent c0182293ec
commit 7e5a45de52
9 changed files with 470 additions and 149 deletions

View File

@@ -626,9 +626,9 @@ namespace Nuake {
framebuffer->QueueResize(viewportPanelSize * Engine::GetProject()->Settings.ResolutionScale);
Ref<Texture> texture = framebuffer->GetTexture();
VkDescriptorSet textureDesc = VkRenderer::Get().GetDrawImage()->GetImGuiDescriptorSet();
auto& pipeline = VkRenderer::Get().GetRenderPipeline();
VkDescriptorSet textureDesc = pipeline.GetRenderPass("Shading").GetAttachment("Output").Image->GetImGuiDescriptorSet();
if (SelectedViewport == 1)
{
textureDesc = pipeline.GetRenderPass("GBuffer").GetAttachment("Albedo").Image->GetImGuiDescriptorSet();