smoothstep - HLSL
Returns 0 if x < min. Returns 1 if x > max. Returns a smooth Hermite interpolation between 0 and 1, if x is in the range [min, max].
Syntax
ret smoothstep(min, max, x) |
---|
Where:
Name | In/Out | Template Type | Component Type | Size |
---|
x | in | scalar, vector, or matrix | float | any |
min | in | same as input x | float | same dimension(s) as input x |
max | in | same as input x | float | same dimension(s) as input x |
ret | out | same as input x | float | same dimension(s) as input x |
Minimum Shader Version
This intrinsic function is supported in the following (or above) shader versions:
Vertex Shader | Pixel Shader |
---|
vs_1_1 | ps_2_0 |