Detect window resize events and update editor main

This commit is contained in:
2025-04-12 10:11:48 +10:00
parent 6e1393ce64
commit 1849593dfc
4 changed files with 48 additions and 27 deletions

View File

@@ -97,14 +97,12 @@ void VulkanRenderDriver::select_device(u32 index) {
SurfaceID VulkanRenderDriver::create_surface(const WindowID window) {
NOVA_AUTO_TRACE();
NOVA_ASSERT(m_instance);
NOVA_ASSERT(m_window_driver);
return m_window_driver->create_surface(window, this);
}
void VulkanRenderDriver::destroy_surface(const SurfaceID surface) {
NOVA_AUTO_TRACE();
NOVA_ASSERT(m_instance);
SurfaceData* data = reinterpret_cast<SurfaceData*>(surface);
vkDestroySurfaceKHR(m_instance, data->handle, get_allocator(VK_OBJECT_TYPE_SURFACE_KHR));
delete data;