[Chore] (MG_Test/Backend/DirectVulkan): encapsulate FrameContext (cont.)

This commit is contained in:
2026-02-16 12:04:55 +08:00
parent 6b7de70bf3
commit 8f57e837b8
6 changed files with 351 additions and 88 deletions
@@ -72,9 +72,12 @@ int main() {
EGLSurface surface = eglCreateWindowSurface(display, config, nativewindow, nullptr);
eglMakeCurrent(display, surface, surface, context);
int i = 0;
while(!glfwWindowShouldClose(window)) {
glfwPollEvents();
MobileGL::MG_Backend::DirectVulkan::pVulkanRenderer->Render();
if (i % 2 == 0)
MobileGL::MG_Backend::DirectVulkan::pVulkanRenderer->Render();
eglSwapBuffers(display, surface);
}