Ray Tracing, Apple Metal, Swift Programming, Gpu Rendering, Wwdc 2020.
simd typealias float2 = SIMD2<Float> typealias float3 = SIMD3<Float> typealias float4 = SIMD4<Float> let π = Float.pi func getDocumentsDirectory() -> URL { let paths = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask) return paths[0] } Make sure your file is added to the target