[Chore] (EGL_EMU.*): Change EGL_EMU.* into VK/EGL_EMU.*.

This commit is contained in:
BZLZHH
2025-04-04 09:31:10 +08:00
parent 3ea184d187
commit 6b102c67c3
3 changed files with 15 additions and 10 deletions
+2 -5
View File
@@ -42,11 +42,8 @@ add_library(${CMAKE_PROJECT_NAME} SHARED
# MG_UTIL/Debug
MG/MG_UTIL/Debug/Debug.cpp
# MG_GL/TEMP_MESA
#MG/MG_GL/TEMP_MESA/MesaEmu.cpp
# MG_GL/EGL_EMU
MG/MG_GL/EGL/EGL_EMU.cpp
# MG_GL/EGL
MG/MG_GL/EGL/VK/EGL_EMU.cpp
)
target_include_directories(${CMAKE_PROJECT_NAME} PRIVATE ./includes)
@@ -4,6 +4,8 @@
#include "EGL_EMU.h"
#if BACKEND_TYPE == BACKEND_VULKAN
std::atomic<uintptr_t> g_nextContextId{1};
std::atomic<uintptr_t> g_nextSurfaceId{1};
EGLenum g_currentAPI = EGL_OPENGL_ES_API;
@@ -544,4 +546,6 @@ EGLBoolean eglQuerySurface(EGLDisplay display, EGLSurface surface, EGLint attrib
default: return EGL_FALSE;
}
return EGL_TRUE;
}
}
#endif
@@ -2,10 +2,12 @@
// Created by BZLZHH on 2025/3/30.
//
#ifndef MOBILEGL_EGL_EMU_H
#define MOBILEGL_EGL_EMU_H
#ifndef MOBILEGL_EGL_VK_EMU_H
#define MOBILEGL_EGL_VK_EMU_H
#include "../../Includes.h"
#include "../../../Includes.h"
#if BACKEND_TYPE == BACKEND_VULKAN
struct EGLInternalConfig {
VkFormat format;
@@ -96,4 +98,6 @@ extern "C" MG_EXPORT EGLBoolean eglSwapInterval(EGLDisplay dpy, EGLint interval)
extern "C" MG_EXPORT EGLBoolean eglSwapBuffers(EGLDisplay dpy, EGLSurface draw);
extern "C" MG_EXPORT EGLSurface eglCreatePbufferSurface(EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list);
#endif //MOBILEGL_EGL_EMU_H
#endif
#endif //MOBILEGL_EGL_VK_EMU_H