Added UberShaderPreprocessor::IsSupported "implementation"
Former-commit-id: 753dbc41d008bd33ed996ac1a745d8e11d836c48
This commit is contained in:
parent
945c6514a9
commit
55ce80b524
|
|
@ -92,7 +92,7 @@ NzUberShaderInstance* NzUberShaderPreprocessor::Get(const NzParameterList& param
|
||||||
auto pair = m_cache.emplace(flags, shader.get());
|
auto pair = m_cache.emplace(flags, shader.get());
|
||||||
shader.release();
|
shader.release();
|
||||||
|
|
||||||
return &(pair.first)->second;
|
return &(pair.first)->second; // On retourne l'objet construit
|
||||||
}
|
}
|
||||||
catch (const std::exception& e)
|
catch (const std::exception& e)
|
||||||
{
|
{
|
||||||
|
|
@ -152,3 +152,8 @@ bool NzUberShaderPreprocessor::SetShaderFromFile(nzShaderStage stage, const NzSt
|
||||||
SetShader(stage, source, flags);
|
SetShader(stage, source, flags);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool NzUberShaderPreprocessor::IsSupported()
|
||||||
|
{
|
||||||
|
return true; // Forcément supporté
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue