HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
gfx_surface_delegate_vulkan.hpp
1// Copyright Take Vos 2022.
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
4
5#pragma once
6
7#include "gfx_surface_delegate.hpp"
8#include "../geometry/axis_aligned_rectangle.hpp"
9#include <vulkan/vulkan.hpp>
10#include <vector>
11#include <cstdint>
12
13namespace hi::inline v1 {
14
16public:
24 virtual void
25 build_for_new_device(VmaAllocator allocator, vk::Instance instance, vk::Device device, vk::Queue graphics_queue) noexcept = 0;
26
38 virtual void build_for_new_swapchain(std::vector<vk::ImageView> const &views, vk::Extent2D size, vk::SurfaceFormatKHR format) noexcept = 0;
39
47 virtual void draw(
48 uint32_t swapchain_index,
49 vk::Rect2D render_area,
50 vk::Semaphore start,
51 vk::Semaphore finish) noexcept = 0;
52};
53
54} // namespace hi::inline v1
DOXYGEN BUG.
Definition algorithm.hpp:15
Definition gfx_surface_delegate.hpp:9
Definition gfx_surface_delegate_vulkan.hpp:15
virtual void draw(uint32_t swapchain_index, vk::Rect2D render_area, vk::Semaphore start, vk::Semaphore finish) noexcept=0
Draw using vulkan API.
virtual void build_for_new_device(VmaAllocator allocator, vk::Instance instance, vk::Device device, vk::Queue graphics_queue) noexcept=0
The vulkan device has been initialized.
virtual void build_for_new_swapchain(std::vector< vk::ImageView > const &views, vk::Extent2D size, vk::SurfaceFormatKHR format) noexcept=0
The swap-chain has been build.