| 94 | } |
| 95 | |
| 96 | void NativeBeginFrame(HContext _context) |
| 97 | { |
| 98 | VulkanContext* context = (VulkanContext*) _context; |
| 99 | #if ANDROID |
| 100 | AndroidVulkanBeginFrame(context); |
| 101 | #endif |
| 102 | uint32_t window_width = dmPlatform::GetWindowWidth(context->m_BaseContext.m_Window); |
| 103 | uint32_t window_height = dmPlatform::GetWindowHeight(context->m_BaseContext.m_Window); |
| 104 | |
| 105 | #if ANDROID |
| 106 | if (AndroidVulkanHandleWindowSurfaceChange(context, window_width, window_height)) |
| 107 | { |
| 108 | return; |
| 109 | } |
| 110 | #endif |
| 111 | |
| 112 | if (window_width != context->m_WindowWidth || window_height != context->m_WindowHeight) |
| 113 | { |
| 114 | context->m_WindowWidth = (uint32_t) window_width; |
| 115 | context->m_WindowHeight = (uint32_t) window_height; |
| 116 | |
| 117 | SwapChainChanged(context, &context->m_WindowWidth, &context->m_WindowHeight, 0, 0); |
| 118 | #if ANDROID |
| 119 | SyncAndroidVulkanWindowSize(context); |
| 120 | #endif |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | bool NativeInitializeContext(HContext _context) |
| 125 | { |
no test coverage detected