OpenGL: Handle Spir-V
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user