mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-15 07:29:17 +01:00
[d3d11] Remove DXVK_SHADER_READ_PATH
Broken, and won't work with ICB UBOs.
This commit is contained in:
parent
bf912d0a5f
commit
bf06654a83
@ -56,7 +56,6 @@ namespace dxvk {
|
|||||||
// If requested by the user, dump both the raw DXBC
|
// If requested by the user, dump both the raw DXBC
|
||||||
// shader and the compiled SPIR-V module to a file.
|
// shader and the compiled SPIR-V module to a file.
|
||||||
const std::string dumpPath = env::getEnvVar(L"DXVK_SHADER_DUMP_PATH");
|
const std::string dumpPath = env::getEnvVar(L"DXVK_SHADER_DUMP_PATH");
|
||||||
const std::string readPath = env::getEnvVar(L"DXVK_SHADER_READ_PATH");
|
|
||||||
|
|
||||||
if (dumpPath.size() != 0) {
|
if (dumpPath.size() != 0) {
|
||||||
reader.store(std::ofstream(str::format(dumpPath, "/", m_name, ".dxbc"),
|
reader.store(std::ofstream(str::format(dumpPath, "/", m_name, ".dxbc"),
|
||||||
@ -74,18 +73,6 @@ namespace dxvk {
|
|||||||
m_shader->dump(dumpStream);
|
m_shader->dump(dumpStream);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If requested by the user, replace
|
|
||||||
// the shader with another file.
|
|
||||||
if (readPath.size() != 0) {
|
|
||||||
// Check whether the file exists
|
|
||||||
std::ifstream readStream(
|
|
||||||
str::format(readPath, "/", m_name, ".spv"),
|
|
||||||
std::ios_base::binary);
|
|
||||||
|
|
||||||
if (readStream)
|
|
||||||
m_shader->read(readStream);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Create shader constant buffer if necessary
|
// Create shader constant buffer if necessary
|
||||||
if (m_shader->shaderConstants().data() != nullptr) {
|
if (m_shader->shaderConstants().data() != nullptr) {
|
||||||
DxvkBufferCreateInfo info;
|
DxvkBufferCreateInfo info;
|
||||||
|
@ -143,9 +143,4 @@ namespace dxvk {
|
|||||||
m_code.store(outputStream);
|
m_code.store(outputStream);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void DxvkShader::read(std::istream& inputStream) {
|
|
||||||
m_code = SpirvCodeBuffer(inputStream);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
@ -227,14 +227,6 @@ namespace dxvk {
|
|||||||
*/
|
*/
|
||||||
void dump(std::ostream& outputStream) const;
|
void dump(std::ostream& outputStream) const;
|
||||||
|
|
||||||
/**
|
|
||||||
* \brief Reads SPIR-V shader
|
|
||||||
*
|
|
||||||
* Can be used to replace the compiled SPIR-V code.
|
|
||||||
* \param [in] inputStream Stream to read from
|
|
||||||
*/
|
|
||||||
void read(std::istream& inputStream);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Sets the shader's debug name
|
* \brief Sets the shader's debug name
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user