OpenGL: Handle Spir-V
This commit is contained in:
@@ -7,11 +7,22 @@
|
||||
|
||||
namespace Nz::GL
|
||||
{
|
||||
|
||||
inline ExtensionStatus Context::GetExtensionStatus(Extension extension) const
|
||||
{
|
||||
return m_extensionStatus[UnderlyingCast(extension)];
|
||||
}
|
||||
|
||||
inline const ContextParams& Context::GetParams() const
|
||||
{
|
||||
return m_params;
|
||||
}
|
||||
|
||||
inline bool Context::IsExtensionSupported(Extension extension) const
|
||||
{
|
||||
return GetExtensionStatus(extension) != ExtensionStatus::NotSupported;
|
||||
}
|
||||
|
||||
inline bool Context::IsExtensionSupported(const std::string& extension) const
|
||||
{
|
||||
return m_supportedExtensions.find(extension) != m_supportedExtensions.end();
|
||||
|
||||
Reference in New Issue
Block a user