diff --git a/src/rendering/vulkan/renderer/vk_postprocess.cpp b/src/rendering/vulkan/renderer/vk_postprocess.cpp index e95c6c339..b991a4c6f 100644 --- a/src/rendering/vulkan/renderer/vk_postprocess.cpp +++ b/src/rendering/vulkan/renderer/vk_postprocess.cpp @@ -553,7 +553,6 @@ VkPostprocess::TextureImage VkPostprocess::GetTexture(const PPTextureType &type, tex.view = fb->GetBuffers()->SceneColorView.get(); tex.layout = &fb->GetBuffers()->SceneColorLayout; } -#if 0 else if (type == PPTextureType::SceneNormal) { tex.image = fb->GetBuffers()->SceneNormal.get(); @@ -572,7 +571,6 @@ VkPostprocess::TextureImage VkPostprocess::GetTexture(const PPTextureType &type, tex.view = fb->GetBuffers()->SceneDepthView.get(); tex.layout = &fb->GetBuffers()->SceneDepthStencilLayout; } -#endif else if (type == PPTextureType::SwapChain) { tex.image = nullptr; diff --git a/src/rendering/vulkan/renderer/vk_renderbuffers.h b/src/rendering/vulkan/renderer/vk_renderbuffers.h index 19d602148..8f425c1f7 100644 --- a/src/rendering/vulkan/renderer/vk_renderbuffers.h +++ b/src/rendering/vulkan/renderer/vk_renderbuffers.h @@ -28,6 +28,9 @@ public: std::unique_ptr SceneFogView; VkFormat SceneDepthStencilFormat = VK_FORMAT_D24_UNORM_S8_UINT; VkImageLayout SceneColorLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; + VkImageLayout SceneDepthStencilLayout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL; + VkImageLayout SceneNormalLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; + VkImageLayout SceneFogLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; static const int NumPipelineImages = 2; std::unique_ptr PipelineImage[NumPipelineImages];