Ray Tracing, Apple Metal, Swift Programming, Gpu Rendering, Wwdc 2020.
output texture if((pid.x >= outTexture.get_width()) || (pid.y >= outTexture.get_height())) { // Return early if the pixel is out of bounds return; } //2 passed from the CPU int row = outTexture.get_width(); int column = outTexture.get_height(); //3 These uniform values can be sent from the CPU, not