Ray Tracing, Apple Metal, Swift Programming, Gpu Rendering, Wwdc 2020.
commandQueue.makeCommandBuffer() let blitEncoder = commandBuffer2?.makeBlitCommandEncoder() blitEncoder?.synchronize(texture: outputTexture, slice: 0, level: 0) blitEncoder?.endEncoding() commandBuffer2?.commit() commandBuffer2?.waitUntilCompleted() let outImage = makeImage(from: outputTexture)