[Chore] (DiligentEngine): Rename the renderer with Diligent Engine.

This commit is contained in:
BZLZHH
2025-06-21 21:43:32 +08:00
parent ee29a397da
commit a1bdaed2f6
5 changed files with 24 additions and 5 deletions
+1 -1
View File
@@ -187,7 +187,7 @@ namespace MG_Constants {
#define BACKEND_DILIGENT 0x0018 #define BACKEND_DILIGENT 0x0018
inline const int BACKEND_DILIGENT_VULKAN = 0x0020; inline const int BACKEND_DILIGENT_VULKAN = 0x0020;
inline const int BACKEND_DILIGENT_METAL = 0x0021; // not ready currently inline const int BACKEND_DILIGENT_METAL = 0x0021; // not ready currently
inline const int BACKEND_DILIGENT_OPENGL = 0x0022; inline const int BACKEND_DILIGENT_OPENGL = 0x0022;
} }
+2
View File
@@ -84,6 +84,8 @@
#include "MG_RHI/GLES/Test/TestDrawing.h" #include "MG_RHI/GLES/Test/TestDrawing.h"
#endif #endif
#include "MG_GL/Implementations/EGL/Diligent/DiligentConfig.h"
#include <cstring> #include <cstring>
#include <iostream> #include <iostream>
#include <cstdio> #include <cstdio>
@@ -5,6 +5,6 @@
#pragma once #pragma once
#include "../../../../Includes.h" #include "../../../../Includes.h"
namespace MG_EGL::Diligent { namespace MG_Diligent {
inline const int DILIGENT_BACKEND_TYPE = MG_Constants::Backend::BACKEND_DILIGENT_VULKAN; inline const int DILIGENT_BACKEND_TYPE = MG_Constants::Backend::BACKEND_DILIGENT_VULKAN;
} }
@@ -6,7 +6,6 @@
#define MOBILEGL_DILIGENT_EGL_IMPL_H #define MOBILEGL_DILIGENT_EGL_IMPL_H
#include "../../../../Includes.h" #include "../../../../Includes.h"
#include "DiligentConfig.h"
#if BACKEND_TYPE == BACKEND_DILIGENT #if BACKEND_TYPE == BACKEND_DILIGENT
@@ -13,7 +13,16 @@ namespace MG_GL::Getter {
#elif BACKEND_TYPE == BACKEND_GLES #elif BACKEND_TYPE == BACKEND_GLES
return "OpenGL ES"; return "OpenGL ES";
#elif BACKEND_TYPE == BACKEND_DILIGENT #elif BACKEND_TYPE == BACKEND_DILIGENT
return "Diligent"; switch (MG_Diligent::DILIGENT_BACKEND_TYPE) {
case MG_Constants::Backend::BACKEND_DILIGENT_VULKAN:
return "DiligentEngine (Vulkan)";
case MG_Constants::Backend::BACKEND_DILIGENT_METAL:
return "DiligentEngine (Metal)";
case MG_Constants::Backend::BACKEND_DILIGENT_OPENGL:
return "DiligentEngine (OpenGL)";
default:
return "DiligentEngine (Unknown Backend)";
}
#else #else
return "<Unknown Backend>"; return "<Unknown Backend>";
#endif #endif
@@ -27,7 +36,16 @@ namespace MG_GL::Getter {
#elif BACKEND_TYPE == BACKEND_GLES #elif BACKEND_TYPE == BACKEND_GLES
return "MobileGlues"; return "MobileGlues";
#elif BACKEND_TYPE == BACKEND_DILIGENT #elif BACKEND_TYPE == BACKEND_DILIGENT
return "MobileGluDiligent"; switch (MG_Diligent::DILIGENT_BACKEND_TYPE) {
case MG_Constants::Backend::BACKEND_DILIGENT_VULKAN:
return "MobileGlued-vk";
case MG_Constants::Backend::BACKEND_DILIGENT_METAL:
return "MobileGlued-mtl";
case MG_Constants::Backend::BACKEND_DILIGENT_OPENGL:
return "MobileGlued-gl";
default:
return "MobileGlued-unknown";
}
#else #else
return "<Unknown MobileGL Version>"; return "<Unknown MobileGL Version>";
#endif #endif