Skip to content

Instantly share code, notes, and snippets.

@Twinklebear
Created July 19, 2018 15:31
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 Twinklebear/0a004561f109b6085417f90f017303e5 to your computer and use it in GitHub Desktop.
Save Twinklebear/0a004561f109b6085417f90f017303e5 to your computer and use it in GitHub Desktop.
uniform int i = 0;
foreach_unique(b in blockID) {
unmasked {
i = i + 1;
}
}
print("unique blocks: %\n", i);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment