Add Vulkan render pass and copy coverage

This commit is contained in:
2026-03-27 17:36:57 +08:00
parent dbec62608c
commit cf8e669f75
8 changed files with 702 additions and 18 deletions

View File

@@ -34,6 +34,15 @@ bool VulkanFramebuffer::Initialize(VkDevice device, RHIRenderPass* renderPass, u
m_renderPass = vulkanRenderPass;
m_width = width;
m_height = height;
if (colorAttachmentCount != vulkanRenderPass->GetColorAttachmentCount()) {
Shutdown();
return false;
}
if ((vulkanRenderPass->HasDepthStencil() && depthStencilAttachment == nullptr) ||
(!vulkanRenderPass->HasDepthStencil() && depthStencilAttachment != nullptr)) {
Shutdown();
return false;
}
m_colorAttachmentViews.reserve(colorAttachmentCount);
std::vector<VkImageView> attachments;