Remove dependency on Qt in qrenderdoc python module

* The main addition here apart from some extra stubs is a new rdc type
  for date time objects.
* Although the module doesn't do anything and is only used for docs
  reflection it is desirable to not have to link against Qt as this
  can cause problems when linking the module without unresolved symbols.
This commit is contained in:
baldurk
2017-12-26 12:11:34 +00:00
parent 464218604f
commit 21d5943d82
17 changed files with 450 additions and 455 deletions
@@ -27,11 +27,10 @@
#include "Code/QRDUtils.h"
#include "QRDInterface.h"
QString SPIRVDisassembler::DisassembleShader(QWidget *window,
const ShaderReflection *shaderDetails) const
rdcstr SPIRVDisassembler::DisassembleShader(QWidget *window, const ShaderReflection *shaderDetails) const
{
if(executable.isEmpty())
return QString();
return "";
QString spv_bin_file = QDir(QDir::tempPath()).absoluteFilePath(lit("spv_bin.spv"));
@@ -48,7 +47,7 @@ QString SPIRVDisassembler::DisassembleShader(QWidget *window,
window, QApplication::translate("SPIRVDisassembler", "Error writing temp file"),
QApplication::translate("SPIRVDisassembler", "Couldn't write temporary SPIR-V file %1.")
.arg(spv_bin_file));
return QString();
return "";
}
if(!QString(args).contains(lit("{spv_bin}")))
@@ -58,7 +57,7 @@ QString SPIRVDisassembler::DisassembleShader(QWidget *window,
QApplication::translate(
"SPIRVDisassembler",
"Please use {spv_bin} in the disassembler arguments to specify the input file."));
return QString();
return "";
}
QString glsl;