[Chore] (MG_Backend/Backends): Upgrade target OpenGL version to 3.3

* 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
This commit is contained in:
BZLZHH
2025-09-14 07:47:33 +08:00
parent 7310071945
commit f865d231d0
+37 -23
View File
@@ -6,15 +6,18 @@
namespace MobileGL { namespace MobileGL {
namespace MG_Backend { namespace MG_Backend {
namespace Unknown { namespace Unknown {
const RendererInfo RendererInfoUnknown = {"<unknown renderer of MobileGL>", const RendererInfo RendererInfoUnknown = {
"<unknown backend>", "<unknown renderer of MobileGL>", // Renderer Name
", <unknown>", "<unknown backend>", // Backend Name
{ ", <unknown>", // Extra vendor
{0, 0, 0}, { // OpenGL Info
{0, 0, 0}, {3, 3, 0}, // Target OpenGL Version
{}, {4, 6, 0}, // Target Shading Language Version
{ }, // OpenGL Extensions
false // Is Compatibility Profile
}, },
{}}; { } // Backend Capability
};
} }
namespace Diligent { namespace Diligent {
@@ -24,23 +27,34 @@ namespace MobileGL {
}; };
const RendererInfo RendererInfoVulkan = { const RendererInfo RendererInfoVulkan = {
"MobileGlued-vk", "MobileGlued-vk", // Renderer Name
"Diligent Engine (Vulkan)", "Diligent Engine (Vulkan)", // Backend Name
Nullopt, Nullopt, // Extra vendor
{{3, 2, 0}, {4, 5, 0}, {V_OpenGL30, V_OpenGL31, V_OpenGL32}, false}, { // OpenGL Info
{}}; {3, 3, 0}, // Target OpenGL Version
{4, 6, 0}, // Target Shading Language Version
const RendererInfo RendererInfoMetal = {"MobileGlued-mtl", {V_OpenGL30, V_OpenGL31, V_OpenGL32, // OpenGL Extensions
"Diligent Engine (Metal)", V_OpenGL33},
Nullopt, false // Is Compatibility Profile
{
{3, 2, 0},
{4, 5, 0},
{V_OpenGL30, V_OpenGL31, V_OpenGL32},
}, },
{}}; { } // 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 } // namespace Diligent
void Init(); void Init();
} // namespace MG_Backend } // namespace MG_Backend
} // namespace MobileGL } // namespace MobileGL