Prefer using VK_AMD_shader_info to disassemble when available.

This commit is contained in:
baldurk
2017-10-23 15:05:29 +01:00
parent fbf37fd201
commit 42abaf2b4f
37 changed files with 842 additions and 161 deletions
+3 -2
View File
@@ -3411,10 +3411,11 @@ void TextureViewer::on_debugPixelContext_clicked()
m_Ctx.CurPipelineState().GetShaderReflection(ShaderStage::Pixel);
const ShaderBindpointMapping &bindMapping =
m_Ctx.CurPipelineState().GetBindpointMapping(ShaderStage::Pixel);
ResourceId pipeline = m_Ctx.CurPipelineState().GetGraphicsPipelineObject();
// viewer takes ownership of the trace
IShaderViewer *s =
m_Ctx.DebugShader(&bindMapping, shaderDetails, ShaderStage::Pixel, trace, debugContext);
IShaderViewer *s = m_Ctx.DebugShader(&bindMapping, shaderDetails, pipeline,
ShaderStage::Pixel, trace, debugContext);
m_Ctx.AddDockWindow(s->Widget(), DockReference::AddTo, this);
});