Lines Matching defs:high

20 extern float __attribute__((overloadable)) clamp(float amount, float low, float high) {
21 return amount < low ? low : (amount > high ? high : amount);
24 extern float2 __attribute__((overloadable)) clamp(float2 amount, float2 low, float2 high) {
26 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x);
27 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y);
31 extern float3 __attribute__((overloadable)) clamp(float3 amount, float3 low, float3 high) {
33 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x);
34 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y);
35 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z);
39 extern float4 __attribute__((overloadable)) clamp(float4 amount, float4 low, float4 high) {
41 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x);
42 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y);
43 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z);
44 r.w = amount.w < low.w ? low.w : (amount.w > high.w ? high.w : amount.w);
48 extern float2 __attribute__((overloadable)) clamp(float2 amount, float low, float high) {
50 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x);
51 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y);
55 extern float3 __attribute__((overloadable)) clamp(float3 amount, float low, float high) {
57 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x);
58 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y);
59 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z);
63 extern float4 __attribute__((overloadable)) clamp(float4 amount, float low, float high) {
65 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x);
66 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y);
67 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z);
68 r.w = amount.w < low ? low : (amount.w > high ? high : amount.w);