[d3d11] Use topath helper in shader code

This commit is contained in:
Joshua Ashton 2022-08-21 19:05:42 +00:00 committed by Philip Rebohle
parent 9d64982b23
commit 0a203095d6
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ namespace dxvk {
const std::string dumpPath = env::getEnvVar("DXVK_SHADER_DUMP_PATH");
if (dumpPath.size() != 0) {
reader.store(std::ofstream(str::tows(str::format(dumpPath, "/", name, ".dxbc").c_str()).c_str(),
reader.store(std::ofstream(str::topath(str::format(dumpPath, "/", name, ".dxbc").c_str()).c_str(),
std::ios_base::binary | std::ios_base::trunc));
}
@ -47,7 +47,7 @@ namespace dxvk {
if (dumpPath.size() != 0) {
std::ofstream dumpStream(
str::tows(str::format(dumpPath, "/", name, ".spv").c_str()).c_str(),
str::topath(str::format(dumpPath, "/", name, ".spv").c_str()).c_str(),
std::ios_base::binary | std::ios_base::trunc);
m_shader->dump(dumpStream);