mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +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) {
|
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);
|
||||||
|
@ -29,7 +29,7 @@ namespace dxvk {
|
|||||||
DxsoReader reader(
|
DxsoReader reader(
|
||||||
reinterpret_cast<const char*>(pShaderBytecode));
|
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);
|
std::ios_base::binary | std::ios_base::trunc), bytecodeLength);
|
||||||
|
|
||||||
char comment[2048];
|
char comment[2048];
|
||||||
@ -41,7 +41,7 @@ namespace dxvk {
|
|||||||
&blob);
|
&blob);
|
||||||
|
|
||||||
if (SUCCEEDED(hr)) {
|
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(
|
disassembledOut.write(
|
||||||
reinterpret_cast<const char*>(blob->GetBufferPointer()),
|
reinterpret_cast<const char*>(blob->GetBufferPointer()),
|
||||||
blob->GetBufferSize());
|
blob->GetBufferSize());
|
||||||
@ -75,7 +75,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