]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/vulkan/framebuffer_backend.h
Create image views in VulkanFramebuffer if necessary
[libs/gl.git] / source / backends / vulkan / framebuffer_backend.h
index cb11004299692b01a1becdb0e4068b9af8b7c121..b53d1751928a4098b1e3580776d74f15850c98e5 100644 (file)
@@ -19,6 +19,7 @@ class VulkanFramebuffer: public NonCopyable
 protected:
        Device &device;
        mutable VkFramebuffer handle = 0;
+       mutable std::vector<VkImageView> view_handles;
        std::string debug_name;
 
        VulkanFramebuffer(bool);
@@ -28,10 +29,11 @@ protected:
        bool is_format_supported(const FrameFormat &);
        static void require_layered() { }
 
-       const Texture *get_attachment(unsigned) const;
        void update(unsigned) const;
        void require_complete() const { }
 
+       void prepare_image_layouts(bool = false) const;
+
        void set_debug_name(const std::string &);
        void set_vulkan_object_name() const;
 };