Graphics/UberShader: Add config callback

This commit is contained in:
Jérôme Leclercq
2021-09-05 15:46:59 +02:00
parent b6c3988bbe
commit 732bb89a86
6 changed files with 100 additions and 5 deletions

View File

@@ -54,6 +54,7 @@ namespace Nz
if (shader.uberShader)
{
UberShader::Config config{ shader.optionValues };
shader.uberShader->UpdateConfig(config, vertexBuffers);
renderPipelineInfo.shaderModules.push_back(shader.uberShader->Get(config));
}