Working on visibility pass

This commit is contained in:
Dynamitos
2024-06-07 09:19:47 +02:00
parent ad00e16cf9
commit cb21e8a85a
24 changed files with 450 additions and 373 deletions
+2 -1
View File
@@ -36,12 +36,13 @@ void ShaderCompiler::registerVertexData(VertexData *vd)
void ShaderCompiler::registerRenderPass(std::string name, PassConfig config)
{
passes[name] = config;
passes[name] = std::move(config);
compile();
}
ShaderPermutation ShaderCompiler::getTemplate(std::string name)
{
std::scoped_lock lock(shadersLock);
ShaderPermutation permutation;
PassConfig &pass = passes[name];
if (pass.useMeshShading)