mirror of https://github.com/RPCS3/rpcs3.git
d3d12: Do not overwrite hlsl file
This commit is contained in:
parent
0b435afd1d
commit
1c803e725b
|
@ -44,8 +44,7 @@
|
||||||
/bin/rpcs3.iobj
|
/bin/rpcs3.iobj
|
||||||
/bin/FragmentProgram.txt
|
/bin/FragmentProgram.txt
|
||||||
/bin/VertexProgram.txt
|
/bin/VertexProgram.txt
|
||||||
/bin/FragmentProgram.hlsl
|
/bin/*.hlsl
|
||||||
/bin/VertexProgram.hlsl
|
|
||||||
/bin/BreakPoints.dat
|
/bin/BreakPoints.dat
|
||||||
/bin/textures
|
/bin/textures
|
||||||
/bin/*.lib
|
/bin/*.lib
|
||||||
|
|
|
@ -81,8 +81,9 @@ struct D3D12Traits
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: This shouldn't use current dir
|
// TODO: This shouldn't use current dir
|
||||||
fs::file("./FragmentProgram.hlsl", o_write | o_create | o_trunc).write(shader.c_str(), shader.size());
|
std::string filename = "./FragmentProgram" + std::to_string(ID) + ".hlsl";
|
||||||
fragmentProgramData.Id = (u32)ID;
|
fs::file(filename, o_write | o_create | o_trunc).write(shader.c_str(), shader.size());
|
||||||
|
fragmentProgramData.id = (u32)ID;
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
static
|
||||||
|
@ -93,8 +94,9 @@ struct D3D12Traits
|
||||||
vertexProgramData.Compile(shaderCode, Shader::SHADER_TYPE::SHADER_TYPE_VERTEX);
|
vertexProgramData.Compile(shaderCode, Shader::SHADER_TYPE::SHADER_TYPE_VERTEX);
|
||||||
|
|
||||||
// TODO: This shouldn't use current dir
|
// TODO: This shouldn't use current dir
|
||||||
fs::file("./VertexProgram.hlsl", o_write | o_create | o_trunc).write(shaderCode.c_str(), shaderCode.size());
|
std::string filename = "./VertexProgram" + std::to_string(ID) + ".hlsl";
|
||||||
vertexProgramData.Id = (u32)ID;
|
fs::file(filename, o_write | o_create | o_trunc).write(shaderCode.c_str(), shaderCode.size());
|
||||||
|
vertexProgramData.id = (u32)ID;
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
static
|
||||||
|
|
Loading…
Reference in New Issue