Closed lexaknyazev closed 8 months ago
https://github.com/KhronosGroup/Vulkan-Guide/blob/c432ecbfc7439788ff0d7b75c99a34446c2c7897/chapters/high_level_shader_language_comparison.adoc#L971
HLSL's saturate is clamp(x, 0, 1). HLSL has a clamp function that matches GLSL.
saturate
clamp(x, 0, 1)
clamp
https://github.com/KhronosGroup/Vulkan-Guide/blob/c432ecbfc7439788ff0d7b75c99a34446c2c7897/chapters/high_level_shader_language_comparison.adoc#L971
HLSL's
saturate
isclamp(x, 0, 1)
. HLSL has aclamp
function that matches GLSL.