Remove unused function

This commit is contained in:
baldurk
2018-08-10 17:00:33 +01:00
parent 0105707f54
commit e2c6dc0317
2 changed files with 0 additions and 30 deletions
@@ -549,34 +549,6 @@ void PipelineStateViewer::setMeshViewPixmap(RDLabel *meshView)
});
}
bool PipelineStateViewer::PrepareShaderEditing(const ShaderReflection *shaderDetails,
QString &entryFunc, rdcstrpairs &files)
{
if(!shaderDetails->debugInfo.files.empty())
{
entryFunc = shaderDetails->entryPoint;
QStringList uniqueFiles;
for(const ShaderSourceFile &s : shaderDetails->debugInfo.files)
{
QString filename = s.filename;
if(uniqueFiles.contains(filename.toLower()))
{
qWarning() << lit("Duplicate full filename") << filename;
continue;
}
uniqueFiles.push_back(filename.toLower());
files.push_back(make_rdcpair(s.filename, s.contents));
}
return true;
}
return false;
}
void PipelineStateViewer::MakeShaderVariablesHLSL(bool cbufferContents,
const rdcarray<ShaderConstant> &vars,
QString &struct_contents, QString &struct_defs)
@@ -88,8 +88,6 @@ private:
QMenu *editMenus[6] = {};
bool PrepareShaderEditing(const ShaderReflection *shaderDetails, QString &entryFunc,
rdcstrpairs &files);
QString GenerateHLSLStub(const ShaderReflection *shaderDetails, const QString &entryFunc);
void EditShader(ResourceId id, ShaderStage shaderType, const rdcstr &entry,
ShaderCompileFlags compileFlags, ShaderEncoding encoding, const rdcstrpairs &files);