Added UberShaderPreprocessor::IsSupported "implementation"

Former-commit-id: 753dbc41d008bd33ed996ac1a745d8e11d836c48
This commit is contained in:
Lynix 2014-04-09 23:05:13 +02:00
parent 945c6514a9
commit 55ce80b524
1 changed files with 6 additions and 1 deletions

View File

@ -92,7 +92,7 @@ NzUberShaderInstance* NzUberShaderPreprocessor::Get(const NzParameterList& param
auto pair = m_cache.emplace(flags, shader.get());
shader.release();
return &(pair.first)->second;
return &(pair.first)->second; // On retourne l'objet construit
}
catch (const std::exception& e)
{
@ -152,3 +152,8 @@ bool NzUberShaderPreprocessor::SetShaderFromFile(nzShaderStage stage, const NzSt
SetShader(stage, source, flags);
return true;
}
bool NzUberShaderPreprocessor::IsSupported()
{
return true; // Forcément supporté
}