16201. How to draw styled rectangles using the GPU and Metal (www.warp.dev)
This is a tutorial on drawing styled rectangles using Metal graphics shaders. Learn how to draw a rectangle, add borders, round the rectangle’s corners, and fill the rectangle with linear gradients. Why render on the GPU For apps that require fast rendering, such as video processing apps or 3D game ...