mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-12 06:08:30 +09:00
[Chore] (DiligentEngine): Rename the renderer with Diligent Engine.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user