https://hgpu.org/?p=6785
Efficient Triangle and Quadrilateral Clipping within Shaders