12-12-2020, 10:49 AM
(This post was last modified: 12-12-2020, 10:51 AM by constructworker.)
If we use the Vulkan graphics api and create a compatible vulkan surface with a win32 surface
can we use that with the tilengine to render to?
can we use that with the tilengine to render to?
Code:
VkSurfaceKHR WIN32Surface;
VkWin32SurfaceCreateInfoKHR win32_surface_info = {};
win32_surface_info.sType = VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR;
win32_surface_info.pNext = nullptr;
win32_surface_info.flags = 0;
win32_surface_info.hinstance = hinstance;
win32_surface_info.hwnd = hwnd;
vkCreateWin32SurfaceKHR(hinstance, &win32_surface_info, nullptr, &hWIN32Surface);