mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 20:52:10 +01:00
[d3d11] Use topath helper in shader code
This commit is contained in:
parent
9d64982b23
commit
0a203095d6
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user