Skip to content

Instantly share code, notes, and snippets.

@baobao
Last active December 14, 2018 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baobao/5559f4081761178e3c15f8949ab2ebd8 to your computer and use it in GitHub Desktop.
Save baobao/5559f4081761178e3c15f8949ab2ebd8 to your computer and use it in GitHub Desktop.
#pragma kernel CSMain
#define ThreadBlockSize 12
RWStructuredBuffer<float> Result;
[numthreads(ThreadBlockSize, 1, 1)]
void CSMain (uint id : SV_DispatchThreadID)
{
Result[id] += 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment