Refactor PS Input fetcher patch to be less pixel-specific

* We also (for now) preserve the existing entry point to keep codegen as similar
  as possible.
This commit is contained in:
baldurk
2025-02-10 17:52:29 +00:00
parent 046b5a0fd1
commit f3ed63c7bf
2 changed files with 411 additions and 297 deletions
@@ -1495,8 +1495,13 @@ ShaderDebugTrace *Debugger::BeginDebug(DebugAPIWrapper *api, const ShaderStage s
lane.outputs = active.outputs;
lane.privates = active.privates;
lane.ids = active.ids;
// mark as inactive/helper lane
lane.helperInvocation = true;
}
if(stage == ShaderStage::Pixel)
{
ShaderVariable var(rdcstr(), 0U, 0U, 0U, 0U);
apiWrapper->FillInputValue(var, ShaderBuiltin::IsHelper, i, 0, 0);
lane.helperInvocation = var.value.u32v[0] != 0;
}
// now that the globals are allocated and their storage won't move, we can take pointers to them
File diff suppressed because it is too large Load Diff