Re:The Evil Within the Comparison Functions
by whatshisface on Sunday February 18, 2018 @09:35PM
(#16410359)
GLSL (OpenGL Shading language, for GPUs) implements this language feature[0]. They chose clamp(x,min,max). Although, it's not exactly a language feature, because I think most GPUs implement this instruction directly in hardware.
https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/cl...