Dispatch IDs and you

1 · Jeremy Ong · Aug. 26, 2023, 8:45 a.m.
Do you frequently find yourself struggling to remember how the various built-in compute shader semantic values work by glancing at the image below? You can find this image on the various SV_* Win32 documentation pages such as this one. It’s easy to get confused as to when to use which semantic value if you’re not used to it, so here’s how I remember things. The main thing to remember is that both SV_GroupID and SV_GroupIndex are poorly named, or at the very least, are inconsistently named. Afte...