Ray Tracing, Apple Metal, Swift Programming, Gpu Rendering, Wwdc 2020.
MTLTexture let row = 800 let column = 600 //3 creating an output texturedescriptor from the input let textureDescriptor = MTLTextureDescriptor() textureDescriptor.textureType = .type2D textureDescriptor.pixelFormat = .bgra8Unorm textureDescriptor.width = row textureDescriptor.height = column