dq.destroy(h);
}
-bool VulkanFramebuffer::is_format_supported(const FrameFormat &fmt)
+bool VulkanFramebuffer::is_format_supported(const FrameFormat &fmt) const
{
const VulkanFunctions &vk = device.get_functions();
for(FrameAttachment a: fmt)
RenderPass render_pass;
render_pass.framebuffer = &self;
+ render_pass.to_present = is_presentable();
render_pass.update(device);
VkFramebufferCreateInfo framebuffer_info = { };
set_vulkan_object_name();
}
-void VulkanFramebuffer::prepare_image_layouts(bool discard) const
+void VulkanFramebuffer::synchronize_resources(bool discard) const
{
for(const Framebuffer::Attachment &a: static_cast<const Framebuffer *>(this)->attachments)
{