OpenGL: Handle Spir-V

This commit is contained in:
Lynix
2020-04-19 15:31:48 +02:00
parent f63d045676
commit bd6924d66d
11 changed files with 3454 additions and 53 deletions

View File

@@ -11,7 +11,8 @@
namespace Nz::GL
{
Context::~Context() = default;
thread_local const Context* s_currentContext = nullptr;
bool Context::Initialize(const ContextParams& params)
{
@@ -70,6 +71,10 @@ namespace Nz::GL
return true;
});
m_extensionStatus.fill(ExtensionStatus::NotSupported);
if (m_supportedExtensions.count("GL_ARB_gl_spirv"))
m_extensionStatus[UnderlyingCast(Extension::SpirV)] = ExtensionStatus::ARB;
#define NAZARA_OPENGLRENDERER_FUNC(name, sig)
#define NAZARA_OPENGLRENDERER_EXT_FUNC(name, sig) LoadSymbol(name, #name, false);
NAZARA_OPENGLRENDERER_FOREACH_GLES_FUNC(NAZARA_OPENGLRENDERER_FUNC, NAZARA_OPENGLRENDERER_EXT_FUNC)