Store API pipeline states in the replay controller

* Instead of storing the API pipeline states in the replay driver and returning
  pointers, we store them in the replay controller and write into it from the
  replay driver.
* This will allow us to remove the replay driver and still keep any previously
  obtained references/pointers to the pipeline state valid.
This commit is contained in:
baldurk
2021-08-18 20:12:06 +01:00
parent 0804ef63be
commit c319ac0234
22 changed files with 527 additions and 430 deletions
+1 -1
View File
@@ -553,7 +553,7 @@ void ResourceInspector::on_viewContents_clicked()
ResourceId id = m_Resource;
ICaptureContext *ctx = &m_Ctx;
m_Ctx.Replay().AsyncInvoke([this, ctx, pipeid, id, entry](IReplayController *r) {
ShaderReflection *refl = r->GetShader(pipeid, id, entry);
const ShaderReflection *refl = r->GetShader(pipeid, id, entry);
if(!refl)
return;