Account for pipeline specialisation constants when reflecting shaders

This commit is contained in:
baldurk
2019-08-16 17:38:35 +01:00
parent e71f986f84
commit ee43d4377c
34 changed files with 535 additions and 154 deletions
+4 -2
View File
@@ -478,10 +478,12 @@ void ResourceInspector::on_viewContents_clicked()
// TODO need to let the user choose the entry point
}
// TODO allow choosing parent pipeline?
ResourceId pipeid;
ResourceId id = m_Resource;
ICaptureContext *ctx = &m_Ctx;
m_Ctx.Replay().AsyncInvoke([this, ctx, id, entry](IReplayController *r) {
ShaderReflection *refl = r->GetShader(id, entry);
m_Ctx.Replay().AsyncInvoke([this, ctx, pipeid, id, entry](IReplayController *r) {
ShaderReflection *refl = r->GetShader(pipeid, id, entry);
if(!refl)
return;