Example of noise generation based on Apple OpenCL example code.