[d3d9] Use topath helpers in shader code

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

View File

@ -2441,7 +2441,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);

View File

@ -29,7 +29,7 @@ namespace dxvk {
DxsoReader reader(
reinterpret_cast<const char*>(pShaderBytecode));
reader.store(std::ofstream(str::tows(str::format(dumpPath, "/", name, ".dxso").c_str()).c_str(),
reader.store(std::ofstream(str::topath(str::format(dumpPath, "/", name, ".dxso").c_str()).c_str(),
std::ios_base::binary | std::ios_base::trunc), bytecodeLength);
char comment[2048];
@ -41,7 +41,7 @@ namespace dxvk {
&blob);
if (SUCCEEDED(hr)) {
std::ofstream disassembledOut(str::tows(str::format(dumpPath, "/", name, ".dxso.dis").c_str()).c_str(), std::ios_base::binary | std::ios_base::trunc);
std::ofstream disassembledOut(str::topath(str::format(dumpPath, "/", name, ".dxso.dis").c_str()).c_str(), std::ios_base::binary | std::ios_base::trunc);
disassembledOut.write(
reinterpret_cast<const char*>(blob->GetBufferPointer()),
blob->GetBufferSize());
@ -75,7 +75,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);