Skip to content

Instantly share code, notes, and snippets.

@nickdarnell
Last active August 29, 2015 14:17
Show Gist options
  • Save nickdarnell/d48b1707fa1e5ac0f909 to your computer and use it in GitHub Desktop.
Save nickdarnell/d48b1707fa1e5ac0f909 to your computer and use it in GitHub Desktop.
RWBuffer dispatchBuff : register(u0);
[numthreads(1, 1, 1)]
void UpdateIndirectDispatchBuffer()
{
dispatchBuff[0] = (uint)ceil(dispatchBuff[0] / NumThreadGroupSize);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment