@@ -51,7 +51,7 @@ namespace glm
51
51
// / @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/sign.xml">GLSL sign man page</a>
52
52
// / @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a>
53
53
template <length_t L, typename T, qualifier Q>
54
- GLM_FUNC_DECL vec<L, T, Q> sign (vec<L, T, Q> const & x);
54
+ GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> sign (vec<L, T, Q> const & x);
55
55
56
56
// / Returns a value equal to the nearest integer that is less then or equal to x.
57
57
// /
@@ -306,13 +306,13 @@ namespace glm
306
306
// / glm::vec4 u = glm::mix(g, h, r); // Interpolations can be perform per component with a vector for the last parameter.
307
307
// / @endcode
308
308
template <typename genTypeT, typename genTypeU>
309
- GLM_FUNC_DECL genTypeT mix (genTypeT x, genTypeT y, genTypeU a);
309
+ GLM_FUNC_DECL GLM_CONSTEXPR genTypeT mix (genTypeT x, genTypeT y, genTypeU a);
310
310
311
311
template <length_t L, typename T, typename U, qualifier Q>
312
- GLM_FUNC_DECL vec<L, T, Q> mix (vec<L, T, Q> const & x, vec<L, T, Q> const & y, vec<L, U, Q> const & a);
312
+ GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> mix (vec<L, T, Q> const & x, vec<L, T, Q> const & y, vec<L, U, Q> const & a);
313
313
314
314
template <length_t L, typename T, typename U, qualifier Q>
315
- GLM_FUNC_DECL vec<L, T, Q> mix (vec<L, T, Q> const & x, vec<L, T, Q> const & y, U a);
315
+ GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> mix (vec<L, T, Q> const & x, vec<L, T, Q> const & y, U a);
316
316
317
317
// / Returns 0.0 if x < edge, otherwise it returns 1.0 for each component of a genType.
318
318
// /
@@ -404,7 +404,7 @@ namespace glm
404
404
// /
405
405
// / @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/floatBitsToInt.xml">GLSL floatBitsToInt man page</a>
406
406
// / @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a>
407
- GLM_FUNC_DECL int floatBitsToInt (float const & v);
407
+ GLM_FUNC_DECL int floatBitsToInt (float v);
408
408
409
409
// / Returns a signed integer value representing
410
410
// / the encoding of a floating-point value. The floatingpoint
@@ -424,7 +424,7 @@ namespace glm
424
424
// /
425
425
// / @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/floatBitsToUint.xml">GLSL floatBitsToUint man page</a>
426
426
// / @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a>
427
- GLM_FUNC_DECL uint floatBitsToUint (float const & v);
427
+ GLM_FUNC_DECL uint floatBitsToUint (float v);
428
428
429
429
// / Returns a unsigned integer value representing
430
430
// / the encoding of a floating-point value. The floatingpoint
@@ -446,7 +446,7 @@ namespace glm
446
446
// /
447
447
// / @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/intBitsToFloat.xml">GLSL intBitsToFloat man page</a>
448
448
// / @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a>
449
- GLM_FUNC_DECL float intBitsToFloat (int const & v);
449
+ GLM_FUNC_DECL float intBitsToFloat (int v);
450
450
451
451
// / Returns a floating-point value corresponding to a signed
452
452
// / integer encoding of a floating-point value.
@@ -470,7 +470,7 @@ namespace glm
470
470
// /
471
471
// / @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/uintBitsToFloat.xml">GLSL uintBitsToFloat man page</a>
472
472
// / @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a>
473
- GLM_FUNC_DECL float uintBitsToFloat (uint const & v);
473
+ GLM_FUNC_DECL float uintBitsToFloat (uint v);
474
474
475
475
// / Returns a floating-point value corresponding to a
476
476
// / unsigned integer encoding of a floating-point value.
0 commit comments