clamp Function
Computes the value of the first specified argument clamped to a range defined by the second and third specified arguments.
inline float clamp(
float _X,
float _Min,
float _Max
) restrict(amp);
inline int clamp(
int _X,
int _Min,
int _Max
) restrict(amp);
Parameters
_X
The value to be clamped_Min
The lower bound of the clamping range._Max
The upper bound of the clamping range.
Return Value
The clamped value of _X.
Requirements
Header: amp.h
Namespace: Concurrency::direct3d