Ray Tracing, Apple Metal, Swift Programming, Gpu Rendering, Wwdc 2020.
computeEncoder = commandBuffer?.makeComputeCommandEncoder() var computeFunction = library?.makeFunction(name: “kernal_ray”)! var computePipelineState = try! device.makeComputePipelineState(function: computeFunction!) //setting the 2 dimention image for the GPU to write var outputTexture :