mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Remove unused function
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user