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:
@@ -11,7 +11,7 @@ namespace Nz
|
||||
return m_shaderStages;
|
||||
}
|
||||
|
||||
inline bool UberShader::HasOption(const std::string& optionName, Pointer<const Option>* option) const
|
||||
inline bool UberShader::HasOption(std::string_view optionName, Pointer<const Option>* option) const
|
||||
{
|
||||
auto it = m_optionIndexByName.find(optionName);
|
||||
if (it == m_optionIndexByName.end())
|
||||
|
||||
Reference in New Issue
Block a user