mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +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");
|
const std::string dumpPath = env::getEnvVar("DXVK_SHADER_DUMP_PATH");
|
||||||
|
|
||||||
if (dumpPath.size() != 0) {
|
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));
|
std::ios_base::binary | std::ios_base::trunc));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ namespace dxvk {
|
|||||||
|
|
||||||
if (dumpPath.size() != 0) {
|
if (dumpPath.size() != 0) {
|
||||||
std::ofstream dumpStream(
|
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);
|
std::ios_base::binary | std::ios_base::trunc);
|
||||||
|
|
||||||
m_shader->dump(dumpStream);
|
m_shader->dump(dumpStream);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user