Simple non-white pixel counter made as proof of concept and starting code for data-parallel computing using Metal+Swift.
At the time of running, remember to place a file testImage.png
in the executable's working directory.
This code contains my answer to a beginner question in StackOverflow: https://stackoverflow.com/a/44763805/3100083