7#include "gfx_surface_delegate_vulkan.hpp"
8#include "../geometry/module.hpp"
9#include "../macros.hpp"
10#include <vulkan/vulkan.hpp>
11#include <vma/vk_mem_alloc.h>
15namespace hi::inline
v1 {
23class gfx_surface_delegate {
25 virtual ~gfx_surface_delegate() =
default;
26 constexpr gfx_surface_delegate()
noexcept =
default;
27 gfx_surface_delegate(gfx_surface_delegate
const&) =
delete;
28 gfx_surface_delegate(gfx_surface_delegate&&) =
delete;
29 gfx_surface_delegate& operator=(gfx_surface_delegate
const&) =
delete;
30 gfx_surface_delegate& operator=(gfx_surface_delegate&&) =
delete;
57 VmaAllocator allocator,
58 vk::Instance instance,
60 vk::Queue graphics_queue,
61 uint32_t graphics_queue_family_index)
noexcept
95 virtual void draw(uint32_t swapchain_index, vk::Semaphore start, vk::Semaphore finish, vk::Rect2D render_area)
noexcept {}
DOXYGEN BUG.
Definition algorithm.hpp:16
virtual void teardown_for_swapchain_lost() noexcept
The swap-chain is going to be teared-down.
Definition gfx_surface_delegate_vulkan.hpp:39
virtual void teardown_for_device_lost() noexcept
The vulkan device is going to be teared-down.
Definition gfx_surface_delegate_vulkan.hpp:43
virtual void build_for_new_device(VmaAllocator allocator, vk::Instance instance, vk::Device device, vk::Queue graphics_queue, uint32_t graphics_queue_family_index) noexcept
The vulkan device has been initialized.
Definition gfx_surface_delegate_vulkan.hpp:56
virtual void build_for_new_swapchain(std::vector< vk::ImageView > const &views, vk::Extent2D size, vk::SurfaceFormatKHR format) noexcept
The swap-chain has been build.
Definition gfx_surface_delegate_vulkan.hpp:77
virtual void draw(uint32_t swapchain_index, vk::Semaphore start, vk::Semaphore finish, vk::Rect2D render_area) noexcept
Draw using vulkan API.
Definition gfx_surface_delegate_vulkan.hpp:95