Reduce parameters that need to be passed for viewing shaders

This commit is contained in:
baldurk
2017-11-22 16:45:50 +00:00
parent 38acc56084
commit 602511bf33
21 changed files with 79 additions and 67 deletions
+1 -2
View File
@@ -702,8 +702,7 @@ void PixelHistoryView::startDebug(EventTag tag)
ResourceId pipeline = m_Ctx.CurPipelineState().GetGraphicsPipelineObject();
// viewer takes ownership of the trace
IShaderViewer *s = m_Ctx.DebugShader(&bindMapping, shaderDetails, pipeline, ShaderStage::Pixel,
trace, debugContext);
IShaderViewer *s = m_Ctx.DebugShader(&bindMapping, shaderDetails, pipeline, trace, debugContext);
m_Ctx.AddDockWindow(s->Widget(), DockReference::MainToolArea, NULL);
});