mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-10 13:18:31 +09:00
* This is to align target OpenGL version with Minecraft 25w37a, which raised the minimum required OpenGL version to 3.3 * With this upgrade, the following features become part of the project's possible implementation scope: - Sampler Objects (ARB_sampler_objects) - Instanced arrays (ARB_instanced_arrays) - Explicit attribute locations (ARB_explicit_attrib_location) - Dual-source blending (ARB_blend_func_extended) - Timer queries (ARB_timer_query) * These capabilities may be leveraged in future work depending on project needs
61 lines
4.0 KiB
C++
61 lines
4.0 KiB
C++
#pragma once
|
|
|
|
#include <Includes.h>
|
|
#include <MG_Util/GLExtensions.h>
|
|
|
|
namespace MobileGL {
|
|
namespace MG_Backend {
|
|
namespace Unknown {
|
|
const RendererInfo RendererInfoUnknown = {
|
|
"<unknown renderer of MobileGL>", // Renderer Name
|
|
"<unknown backend>", // Backend Name
|
|
", <unknown>", // Extra vendor
|
|
{ // OpenGL Info
|
|
{3, 3, 0}, // Target OpenGL Version
|
|
{4, 6, 0}, // Target Shading Language Version
|
|
{ }, // OpenGL Extensions
|
|
false // Is Compatibility Profile
|
|
},
|
|
{ } // Backend Capability
|
|
};
|
|
}
|
|
|
|
namespace Diligent {
|
|
enum class SpecificBackendType {
|
|
Vulkan,
|
|
Metal
|
|
};
|
|
|
|
const RendererInfo RendererInfoVulkan = {
|
|
"MobileGlued-vk", // Renderer Name
|
|
"Diligent Engine (Vulkan)", // Backend Name
|
|
Nullopt, // Extra vendor
|
|
{ // OpenGL Info
|
|
{3, 3, 0}, // Target OpenGL Version
|
|
{4, 6, 0}, // Target Shading Language Version
|
|
{V_OpenGL30, V_OpenGL31, V_OpenGL32, // OpenGL Extensions
|
|
V_OpenGL33},
|
|
false // Is Compatibility Profile
|
|
},
|
|
{ } // Backend Capability
|
|
};
|
|
|
|
const RendererInfo RendererInfoMetal = {
|
|
"MobileGlued-mtl", // Renderer Name
|
|
"Diligent Engine (Metal)", // Backend Name
|
|
Nullopt, // Extra vendor
|
|
{ // OpenGL Info
|
|
{3, 3, 0}, // Target OpenGL Version
|
|
{4, 6, 0}, // Target Shading Language Version
|
|
{V_OpenGL30, V_OpenGL31, V_OpenGL32, // OpenGL Extensions
|
|
V_OpenGL33},
|
|
false // Is Compatibility Profile
|
|
},
|
|
{ } // Backend Capability
|
|
};
|
|
} // namespace Diligent
|
|
|
|
void Init();
|
|
} // namespace MG_Backend
|
|
} // namespace MobileGL
|