mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-08 12:18:30 +09:00
19 lines
377 B
C++
19 lines
377 B
C++
//
|
|
// Created by BZLZHH on 2025/3/15.
|
|
//
|
|
|
|
#include "BackendInfo.h"
|
|
|
|
namespace MG_GL::Getter {
|
|
const std::string GetBackendName() {
|
|
#if BACKEND_TYPE == BACKEND_VULKAN
|
|
return "Vulkan";
|
|
#elif BACKEND_TYPE == BACKEND_VULKAN
|
|
return "Metal";
|
|
#elif BACKEND_TYPE == BACKEND_VULKAN
|
|
return "OpenGL ES";
|
|
#else
|
|
return "<Unknown Backend>";
|
|
#endif
|
|
}
|
|
} |