mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-23 14:15:42 +00:00
D3D12 Workgroup debugger, use SV_GroupThreadID for threadid
Use SV_GroupThreadID to fill in threadid in the compute fetcher instead of SV_DispatchThreadID Keep SV_DispatchThreadID to identify the candidate thread
This commit is contained in:
@@ -883,7 +883,8 @@ void ExtractInputs(Inputs IN
|
||||
|
||||
#elif STAGE == STAGE_CS
|
||||
|
||||
, uint3 threadid : SV_DispatchThreadID
|
||||
, uint3 threadid : SV_GroupThreadID
|
||||
, uint3 dtid : SV_DispatchThreadID
|
||||
|
||||
#endif
|
||||
)
|
||||
@@ -992,7 +993,7 @@ void ExtractInputs(Inputs IN
|
||||
ps.primitive = primitive;
|
||||
ps.isFrontFace = isFrontFace;
|
||||
#elif STAGE == STAGE_CS
|
||||
bool candidateThread = (threadid.x == DESTX && threadid.y == DESTY && threadid.z == DESTZ);
|
||||
bool candidateThread = (dtid.x == DESTX && dtid.y == DESTY && dtid.z == DESTZ);
|
||||
|
||||
cs.threadid = threadid;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user