Module glm::builtin
[−]
[src]
Built-in funcions defined in GLSL specification chapter 8.
Functions
| abs |
Returns |
| acos |
Returns an angle whose cosine is |
| acosh |
Arc hyperbolic cosine; returns the non-negative inverse of cosh. |
| all |
Returns |
| any |
Returns |
| asin |
Returns an angle whose sine is |
| asinh |
Arc hyperbolic sine; returns the inverse of sinh. |
| atan |
Returns an angle whose tangent is |
| atan2 |
Returns an angle whose tangent is |
| atanh |
Arc hyperbolic tangent; returns the inverse of tanh. |
| bitCount |
Returns the number of bits set to 1 in the binary representation of
|
| bitfieldExtract |
Extracts bits |
| bitfieldInsert |
Returns the insertion the |
| bitfieldReverse |
Returns the reversal of the bits of |
| ceil |
Returns a value equal to the nearest integer that is greater than or
equal to |
| clamp |
Returns |
| clamp_s |
A variant of function |
| cos |
The standard trigonometric cosine function. |
| cosh |
Returns the hyperbolic cosine function (ex + e-x) / 2. |
| cross |
Returns the cross product of |
| degrees |
Converts |
| determinant |
Returns the determinant of |
| distance |
Returns the distance between |
| dot |
Returns the dot product of |
| equal |
Returns the component-wise compare of |
| exp |
Returns the natural exponentiation of |
| exp2 |
Returns |
| faceforward |
If |
| findLSB |
Returns the bit number of the least significant bit set to 1 in the binary
representation of |
| findMSB |
Returns the bit number of the most significant bit in the binary
representation of |
| floatBitsToInt |
Returns a signed integer value representing the encoding of a floating-point value. |
| floatBitsToUint |
Returns a unsigned integer value representing the encoding of a floating-point value. |
| floor |
Returns a value equal to the nearest integer that is less than or
equal to |
| fma |
Computes and returns |
| fmod |
Modulus. Returns |
| fract |
Returns |
| frexp |
Splits |
| greaterThan |
Returns the component-wise compare of |
| greaterThanEqual |
Returns the component-wise compare of |
| imulExtended |
Multiplies 32-bit integers |
| intBitsToFloat |
Returns a floating-point value corresponding to a signed integer encoding of a floating-point value. |
| inverse |
Returns a matrix that is the inverse of |
| inversesqrt |
Returns the inverse of the square root of |
| isinf |
Returns true if x holds a positive infinity or negative infinity. Returns false otherwise. |
| isnan |
Returns |
| ldexp |
Builds a floating-point number from |
| length |
Returns the length of vector |
| lessThan |
Returns the component-wise compare of |
| lessThanEqual |
Returns the component-wise compare of |
| log |
Returns the natural logarithm of |
| log2 |
Returns the base |
| matrixCompMult |
Multiply matrix |
| max |
Returns |
| max_s |
A variant of |
| min |
Returns |
| min_s |
A variant of function |
| mix |
Returns the linear blend of |
| mix_bool |
Selects which vector each returned component comes from. |
| mix_s |
A variant of function |
| mod_s |
Modulus with a scalar number. |
| modf |
Returns the fractional and integer parts of |
| noise1 |
Returns a 1D noise value based on the input value |
| noise2 |
Returns a 2D noise value based on the input value |
| noise3 |
Returns a 3D noise value based on the input value |
| noise4 |
Returns a 4D noise value based on the input value |
| normalize |
Returns a vector in the same direction as |
| not |
Returns the component-wise logical complement of |
| notEqual |
Returns the component-wise compare of |
| outerProduct |
Treats the first parameter |
| packDouble2x32 |
Returns a double-precision value obtained by packing the components of |
| packSnorm2x16 |
First, converts each component of the normalized floating-point value |
| packSnorm4x8 |
First, converts each component of the normalized floating-point value |
| packUnorm2x16 |
First, converts each component of the normalized floating-point value |
| packUnorm4x8 |
First, converts each component of the normalized floating-point value |
| pow |
Returns |
| radians |
Converts |
| reflect |
For the incident vector I and surface orientation N,
returns the reflection direction: |
| refract |
For the incident vector I and surface normal N, and the ratio of
indices of refraction |
| round |
Returns a value equal to the nearest integer to |
| roundEven |
Returns a value equal to the nearest integer to |
| sign |
Returns |
| sin |
The standard trigonometric sine function. |
| sinh |
Returns the hyperbolic sine function (ex - e-x) / 2. |
| smoothstep |
Returns |
| smoothstep_s |
A variant of |
| sqrt |
Returns the square root of |
| step |
Returns |
| step_s |
A variant of |
| tan |
The standard trigonometric tangent. |
| tanh |
Returns the hyperbolic tangent function |
| transpose |
Returns a matrix that is the transpose of |
| trunc |
Returns a value equal to the nearest integer to |
| uaddCarry |
Adds 32-bit unsigned integer |
| uintBitsToFloat |
Returns a floating-point value corresponding to a unsigned integer encoding of a floating-point value. |
| umulExtended |
Multiplies 32-bit unsigned integers |
| unpackDouble2x32 |
Returns a two-component unsigned integer vector representation of |
| unpackSnorm2x16 |
First, unpacks a single 32-bit unsigned integer |
| unpackSnorm4x8 |
First, unpacks a single 32-bit unsigned integer |
| unpackUnorm2x16 |
First, unpacks a single 32-bit unsigned integer |
| unpackUnorm4x8 |
First, unpacks a single 32-bit unsigned integer |
| usubBorrow |
Subtracts the 32-bit unsigned integer |