◆ build_for_new_device()
| virtual void v1::gfx_surface_delegate_vulkan::build_for_new_device |
( |
VmaAllocator | allocator, |
|
|
vk::Instance | instance, |
|
|
vk::Device | device, |
|
|
vk::Queue | graphics_queue ) |
|
pure virtualnoexcept |
The vulkan device has been initialized.
This function is called when either the device has just been build, or when the widget is added to a window with the device already existing.
The device may be rebuild when the vulkan device disconnects.
◆ build_for_new_swapchain()
| virtual void v1::gfx_surface_delegate_vulkan::build_for_new_swapchain |
( |
std::vector< vk::ImageView > const & | views, |
|
|
vk::Extent2D | size, |
|
|
vk::SurfaceFormatKHR | format ) |
|
pure virtualnoexcept |
The swap-chain has been build.
This function is called when either the swap-chain has just been build, or when the widget is added to a window with the swap-chain already existing.
The swap-chain will also be build during resizing of the window. So this needs to be rather fast.
- Parameters
-
| views | The list of swap-chain image views. |
| size | The size of the images in the swap-chain. |
| format | The pixel format and color space of the images in the swap-chain. |
◆ draw()
| virtual void v1::gfx_surface_delegate_vulkan::draw |
( |
uint32_t | swapchain_index, |
|
|
vk::Rect2D | render_area, |
|
|
vk::Semaphore | start, |
|
|
vk::Semaphore | finish ) |
|
pure virtualnoexcept |
Draw using vulkan API.
- Parameters
-
| swapchain_index | The index of the image-view of the swap-chain to draw into. |
| clipping_rectangle | The rectangle on the window that is visible through this widget. |
| render_area | The area of the window that is being drawn. |
| start | The semaphore used to signal when the image_view is ready to be drawn. |
| finish | The semaphore used to signal when the HikoGUI overlay is drawn onto the image_view. |
The documentation for this class was generated from the following file: