Files
MobileGL/MobileGL/MG_Backend/Backends.h
T
BZLZHH f865d231d0 [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
2025-09-14 07:47:33 +08:00

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