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:
Jake Turner
2025-04-18 13:58:09 +01:00
parent e14bc98e18
commit 53ad61b6a5
+3 -2
View File
@@ -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