mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
Limit shaderlog writing behind log_programs setting
This commit is contained in:
parent
f2cac26154
commit
ef587d4cdc
5 changed files with 12 additions and 7 deletions
|
|
@ -365,7 +365,8 @@ void VKVertexProgram::Decompile(const RSXVertexProgram& prog)
|
|||
|
||||
void VKVertexProgram::Compile()
|
||||
{
|
||||
fs::file(fs::get_cache_dir() + "shaderlog/VertexProgram" + std::to_string(id) + ".spirv", fs::rewrite).write(shader.get_source());
|
||||
if (g_cfg.video.log_programs)
|
||||
fs::file(fs::get_cache_dir() + "shaderlog/VertexProgram" + std::to_string(id) + ".spirv", fs::rewrite).write(shader.get_source());
|
||||
handle = shader.compile();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue