frame_buffer.hpp

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once


#include <planet/vk/helpers.hpp>


namespace planet::vk {


    class frame_buffer final {
        using handle_type = device_handle<VkFramebuffer, vkDestroyFramebuffer>;
        handle_type handle;

      public:
        frame_buffer(vk::device &, VkFramebufferCreateInfo const &);

        device_view device;
        VkFramebuffer get() const noexcept { return handle.get(); }
    };


}