Compartir a través de


smoothstep Function

Returns a smooth Hermite interpolation between 0 and 1, if _X is in the range [_Min, _Max].

inline float smoothstep(
   float _Min,
   float _Max,
   float _X
) restrict(amp);

Parameters

  • _Min
    Floating-point value

  • _Max
    Floating-point value

  • _X
    Floating-point value

Return Value

Returns 0 if _X is less than _Min; 1 if _X is greater than _Max; otherwise, a value between 0 and 1 if _X is in the range [_Min, _Max]

Requirements

Header: amp.h

Namespace: Concurrency::direct3d

See Also

Reference

Concurrency::direct3d Namespace