smoothstep - HLSL
Microsoft DirectX 9.0 SDK Update (October 2004)

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:

NameIn/OutTemplate TypeComponent TypeSize
xinscalar, vector, or matrixfloatany
mininsame as input xfloatsame dimension(s) as input x
maxinsame as input xfloatsame dimension(s) as input x
retoutsame as input xfloatsame dimension(s) as input x

Minimum Shader Version

This intrinsic function is supported in the following (or above) shader versions:

Vertex ShaderPixel Shader
vs_1_1ps_2_0


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.