]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/vulkan/framebuffer_backend.cpp
Check if render target is swapchain and set to_present accordingly
[libs/gl.git] / source / backends / vulkan / framebuffer_backend.cpp
index 96653fe1d084444b625297cd9651ff2dea0f8b90..52857351c3e3237bd72425764ef4d073f4b8767f 100644 (file)
@@ -48,6 +48,11 @@ bool VulkanFramebuffer::is_format_supported(const FrameFormat &fmt)
        return true;
 }
 
+const Texture *VulkanFramebuffer::get_attachment(unsigned i) const
+{
+       return static_cast<const Framebuffer *>(this)->attachments[i].tex;
+}
+
 void VulkanFramebuffer::update(unsigned) const
 {
        const Framebuffer &self = *static_cast<const Framebuffer *>(this);