mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-29 02:41:08 +00:00
Add fetch of subgroup data via GPU readback, handling helpers in PS
This commit is contained in:
@@ -241,6 +241,7 @@ struct ThreadState
|
||||
uint32_t workgroupIndex = 0;
|
||||
bool helperInvocation = false;
|
||||
bool dead = true;
|
||||
bool elected = false;
|
||||
|
||||
const ShaderVariable &GetSrc(Id id) const;
|
||||
void WritePointerValue(Id pointer, const ShaderVariable &val);
|
||||
|
||||
@@ -1507,6 +1507,9 @@ ShaderDebugTrace *Debugger::BeginDebug(DebugAPIWrapper *api, const ShaderStage s
|
||||
|
||||
lane.dead = apiWrapper->GetThreadProperty(i, ThreadProperty::Active) == 0;
|
||||
|
||||
if(patchData.threadScope & ThreadScope::Subgroup)
|
||||
lane.elected = apiWrapper->GetThreadProperty(i, ThreadProperty::Elected) != 0;
|
||||
|
||||
// now that the globals are allocated and their storage won't move, we can take pointers to them
|
||||
for(const PointerId &p : pointerIDs)
|
||||
p.Set(*this, global, lane);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user