render_pass.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 render_pass final {
        using handle_type = device_handle<VkRenderPass, vkDestroyRenderPass>;
        handle_type handle;

      public:
        render_pass(vk::device &, VkRenderPassCreateInfo const &);

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


}