Optimize out a lot of std::string construction and allocations (#415)
Update CommandLineParameters.hpp Update CommandLineParametersTests.cpp Update WebContext.hpp xmake check-files -f Fix MaterialPassRegistry
This commit is contained in:
@@ -107,9 +107,9 @@ namespace Nz::GL
|
||||
return GetExtensionStatus(extension) != ExtensionStatus::NotSupported;
|
||||
}
|
||||
|
||||
inline bool Context::IsExtensionSupported(const std::string& extension) const
|
||||
inline bool Context::IsExtensionSupported(std::string_view extension) const
|
||||
{
|
||||
return m_supportedExtensions.find(extension) != m_supportedExtensions.end();
|
||||
return m_supportedExtensions.contains(extension);
|
||||
}
|
||||
|
||||
inline bool Context::HasZeroToOneDepth() const
|
||||
|
||||
Reference in New Issue
Block a user