X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fvulkan%2Fframebuffer_backend.h;h=3fa75421cb03b2f61a1ca61e54561999c5441000;hb=2a70fecfbbe8708be2bdaa75d222dd5a889a8ed3;hp=cb11004299692b01a1becdb0e4068b9af8b7c121;hpb=6630b1106493e5a072a9a9f212f0d00648dbedd4;p=libs%2Fgl.git diff --git a/source/backends/vulkan/framebuffer_backend.h b/source/backends/vulkan/framebuffer_backend.h index cb110042..3fa75421 100644 --- a/source/backends/vulkan/framebuffer_backend.h +++ b/source/backends/vulkan/framebuffer_backend.h @@ -13,12 +13,14 @@ class Texture; class VulkanFramebuffer: public NonCopyable { + friend class RenderPass; friend class VulkanCommands; friend class VulkanPipelineState; protected: Device &device; mutable VkFramebuffer handle = 0; + mutable std::vector view_handles; std::string debug_name; VulkanFramebuffer(bool); @@ -28,10 +30,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; };