Working on visibility pass

This commit is contained in:
Dynamitos committed 2024-06-07 09:19:47 +02:00
1 parent ad00e16cf9
commit cb21e8a85a
24 files changed
+450 -373

No files matched your search

+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)