Ray Tracing, Apple Metal, Swift Programming, Gpu Rendering, Wwdc 2020.
saveImage(outImage!, atUrl: getDocumentsDirectory().appendingPathComponent(“outputGPU.png”)) print(“finished”) Going through the code: From the device we setup the GPU utilizing Metalkit which we imported. For more please check the previous blog here. We set the dimension of the image. We need to