Common functions (Section 8.3 of GLSL 1.20.8 specification).
|
Functions |
|
template<typename T> |
| detail::_xvec4< T > | abs (const detail::_xvec4< T > &x) |
| | Returns x if x >= 0; otherwise, it returns -x. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec3< T > | abs (const detail::_xvec3< T > &x) |
| | Returns x if x >= 0; otherwise, it returns -x. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec2< T > | abs (const detail::_xvec2< T > &x) |
| | Returns x if x >= 0; otherwise, it returns -x. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| T | abs (T x) |
| | Returns x if x >= 0; otherwise, it returns -x. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec4< T > | ceil (const detail::_xvec4< T > &x) |
| | Returns a value equal to the nearest integer that is greater than or equal to x. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec3< T > | ceil (const detail::_xvec3< T > &x) |
| | Returns a value equal to the nearest integer that is greater than or equal to x. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec2< T > | ceil (const detail::_xvec2< T > &x) |
| | Returns a value equal to the nearest integer that is greater than or equal to x. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| T | ceil (T x) |
| | Returns a value equal to the nearest integer that is greater than or equal to x. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec4< T > | clamp (const detail::_xvec4< T > &x, const detail::_xvec4< T > &minVal, const detail::_xvec4< T > &maxVal) |
| | Returns the component-wise result of min(max(x, minVal), maxVal). (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec3< T > | clamp (const detail::_xvec3< T > &x, const detail::_xvec3< T > &minVal, const detail::_xvec3< T > &maxVal) |
| | Returns the component-wise result of min(max(x, minVal), maxVal). (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec2< T > | clamp (const detail::_xvec2< T > &x, const detail::_xvec2< T > &minVal, const detail::_xvec2< T > &maxVal) |
| | Returns the component-wise result of min(max(x, minVal), maxVal). (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec4< T > | clamp (const detail::_xvec4< T > &x, T minVal, T maxVal) |
| | Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal and maxVal. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec3< T > | clamp (const detail::_xvec3< T > &x, T minVal, T maxVal) |
| | Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal and maxVal. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec2< T > | clamp (const detail::_xvec2< T > &x, T minVal, T maxVal) |
| | Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal and maxVal. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| T | clamp (T x, T minVal, T maxVal) |
| | Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal and maxVal. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec4< T > | floor (const detail::_xvec4< T > &x) |
| | Returns a value equal to the nearest integer that is less then or equal to x. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec3< T > | floor (const detail::_xvec3< T > &x) |
| | Returns a value equal to the nearest integer that is less then or equal to x. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec2< T > | floor (const detail::_xvec2< T > &x) |
| | Returns a value equal to the nearest integer that is less then or equal to x. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| T | floor (T x) |
| | Returns a value equal to the nearest integer that is less then or equal to x. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec4< T > | fract (const detail::_xvec4< T > &x) |
| | Return x - floor(x). (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec3< T > | fract (const detail::_xvec3< T > &x) |
| | Return x - floor(x). (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec2< T > | fract (const detail::_xvec2< T > &x) |
| | Return x - floor(x). (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| T | fract (T x) |
| | Return x - floor(x). (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec4< T > | max (const detail::_xvec4< T > &x, const detail::_xvec4< T > &y) |
| | Returns maximum of each component of x compared with the floating-point value y. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec3< T > | max (const detail::_xvec3< T > &x, const detail::_xvec3< T > &y) |
| | Returns maximum of each component of x compared with the floating-point value y. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec2< T > | max (const detail::_xvec2< T > &x, const detail::_xvec2< T > &y) |
| | Returns maximum of each component of x compared with the floating-point value y. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec4< T > | max (const detail::_xvec4< T > &x, T y) |
| | Returns y if x < y; otherwise, it returns x. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec3< T > | max (const detail::_xvec3< T > &x, T y) |
| | Returns y if x < y; otherwise, it returns x. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec2< T > | max (const detail::_xvec2< T > &x, T y) |
| | Returns y if x < y; otherwise, it returns x. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| T | max (T x, T y) |
| | Returns y if x < y; otherwise, it returns x. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec4< T > | min (const detail::_xvec4< T > &x, const detail::_xvec4< T > &y) |
| | Returns minimum of each component of x compared with the floating-point value y. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec3< T > | min (const detail::_xvec3< T > &x, const detail::_xvec3< T > &y) |
| | Returns minimum of each component of x compared with the floating-point value y. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec2< T > | min (const detail::_xvec2< T > &x, const detail::_xvec2< T > &y) |
| | Returns minimum of each component of x compared with the floating-point value y. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec4< T > | min (const detail::_xvec4< T > &x, T y) |
| | Returns y if y < x; otherwise, it returns x. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec3< T > | min (const detail::_xvec3< T > &x, T y) |
| | Returns y if y < x; otherwise, it returns x. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec2< T > | min (const detail::_xvec2< T > &x, T y) |
| | Returns y if y < x; otherwise, it returns x. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| T | min (T x, T y) |
| | Returns y if y < x; otherwise, it returns x. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec4< T > | mod (const detail::_xvec4< T > &x, const detail::_xvec4< T > &y) |
| | Modulus. Returns x - y * floor(x / y) for each component in x using the corresponding component of y. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec3< T > | mod (const detail::_xvec3< T > &x, const detail::_xvec3< T > &y) |
| | Modulus. Returns x - y * floor(x / y) for each component in x using the corresponding component of y. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec2< T > | mod (const detail::_xvec2< T > &x, const detail::_xvec2< T > &y) |
| | Modulus. Returns x - y * floor(x / y) for each component in x using the corresponding component of y. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec4< T > | mod (const detail::_xvec4< T > &x, T y) |
| | Modulus. Returns x - y * floor(x / y) for each component in x using the floating point value y. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec3< T > | mod (const detail::_xvec3< T > &x, T y) |
| | Modulus. Returns x - y * floor(x / y) for each component in x using the floating point value y. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec2< T > | mod (const detail::_xvec2< T > &x, T y) |
| | Modulus. Returns x - y * floor(x / y) for each component in x using the floating point value y. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| T | mod (T x, T y) |
| | Modulus. Returns x - y * floor(x / y) for each component in x using the floating point value y. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec4< T > | sign (const detail::_xvec4< T > &x) |
| | Returns 1.0 if x > 0, 0.0 if x = 0, or -1.0 if x < 0. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec3< T > | sign (const detail::_xvec3< T > &x) |
| | Returns 1.0 if x > 0, 0.0 if x = 0, or -1.0 if x < 0. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec2< T > | sign (const detail::_xvec2< T > &x) |
| | Returns 1.0 if x > 0, 0.0 if x = 0, or -1.0 if x < 0. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| T | sign (T x) |
| | Returns 1.0 if x > 0, 0.0 if x = 0, or -1.0 if x < 0. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec4< T > | smoothstep (const detail::_xvec4< T > &edge0, const detail::_xvec4< T > &edge1, const detail::_xvec4< T > &x) |
| | Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and performs smooth Hermite interpolation between 0 and 1 when edge0 < x, edge1. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec3< T > | smoothstep (const detail::_xvec3< T > &edge0, const detail::_xvec3< T > &edge1, const detail::_xvec3< T > &x) |
| | Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and performs smooth Hermite interpolation between 0 and 1 when edge0 < x, edge1. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec2< T > | smoothstep (const detail::_xvec2< T > &edge0, const detail::_xvec2< T > &edge1, const detail::_xvec2< T > &x) |
| | Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and performs smooth Hermite interpolation between 0 and 1 when edge0 < x, edge1. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec4< T > | smoothstep (T edge0, T edge1, const detail::_xvec4< T > &x) |
| | Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and performs smooth Hermite interpolation between 0 and 1 when edge0 < x, edge1. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec3< T > | smoothstep (T edge0, T edge1, const detail::_xvec3< T > &x) |
| | Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and performs smooth Hermite interpolation between 0 and 1 when edge0 < x, edge1. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec2< T > | smoothstep (T edge0, T edge1, const detail::_xvec2< T > &x) |
| | Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and performs smooth Hermite interpolation between 0 and 1 when edge0 < x, edge1. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| T | smoothstep (T edge0, T edge1, T x) |
| | Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and performs smooth Hermite interpolation between 0 and 1 when edge0 < x, edge1. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec4< T > | step (const detail::_xvec4< T > &edge, const detail::_xvec4< T > &x) |
| | Returns 0.0 if x <= edge; otherwise, it returns 1.0. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec3< T > | step (const detail::_xvec3< T > &edge, const detail::_xvec3< T > &x) |
| | Returns 0.0 if x <= edge; otherwise, it returns 1.0. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec2< T > | step (const detail::_xvec2< T > &edge, const detail::_xvec2< T > &x) |
| | Returns 0.0 if x <= edge; otherwise, it returns 1.0. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec4< T > | step (T edge, const detail::_xvec4< T > &x) |
| | Returns 0.0 if x <= edge; otherwise, it returns 1.0. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec3< T > | step (T edge, const detail::_xvec3< T > &x) |
| | Returns 0.0 if x <= edge; otherwise, it returns 1.0. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec2< T > | step (T edge, const detail::_xvec2< T > &x) |
| | Returns 0.0 if x <= edge; otherwise, it returns 1.0. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| T | step (T edge, T x) |
| | Returns 0.0 if x <= edge; otherwise, it returns 1.0. (From GLSL 1.10.59 specification).
|
Common functions (Section 8.3 of GLSL 1.20.8 specification).