Add Vulkan render pass and copy coverage
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user