Compartilhar via


saturate Function

Clamps _X within the range of 0 to 1

inline float saturate(
   float _X
) restrict(amp);

Parameters

  • _X
    Floating-point value

Return Value

Returns _X clamped within the range of 0 to 1

Requirements

Header: amp.h

Namespace: Concurrency::direct3d

See Also

Reference

Concurrency::direct3d Namespace