Reduce parameters that need to be passed for viewing shaders

This commit is contained in:
baldurk
2017-11-22 19:11:27 +00:00
parent 38acc56084
commit 602511bf33
21 changed files with 79 additions and 67 deletions
+2 -2
View File
@@ -3208,8 +3208,8 @@ void BufferViewer::debugVertex()
ResourceId pipeline = m_Ctx.CurPipelineState().GetGraphicsPipelineObject();
// viewer takes ownership of the trace
IShaderViewer *s = m_Ctx.DebugShader(&bindMapping, shaderDetails, pipeline,
ShaderStage::Vertex, trace, debugContext);
IShaderViewer *s =
m_Ctx.DebugShader(&bindMapping, shaderDetails, pipeline, trace, debugContext);
m_Ctx.AddDockWindow(s->Widget(), DockReference::AddTo, this);
});