forked from Dynamitos/Seele
Working on visibility pass
This commit is contained in:
1 parent
ad00e16cf9
commit
cb21e8a85a
24 files changed
+450
-373
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user