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