mirror of
https://github.com/g-truc/glm.git
synced 2024-12-02 04:34:34 +00:00
simd constexpr vec: fix a couple more compile errors
This commit is contained in:
parent
2ad1ffa10c
commit
90b74f1106
@ -30,7 +30,7 @@ namespace glm
|
|||||||
concept arithmetic = std::integral<T> || std::floating_point<T>;
|
concept arithmetic = std::integral<T> || std::floating_point<T>;
|
||||||
template <typename T0, typename... T>
|
template <typename T0, typename... T>
|
||||||
consteval bool SameArithmeticTypes() {
|
consteval bool SameArithmeticTypes() {
|
||||||
return (std::is_same_v<std::common_type_t<T0,T>, T> && ...);
|
return (std::is_same_v<std::common_type_t<T0,T>, std::common_type_t<T0,T>> && ...);
|
||||||
}
|
}
|
||||||
template <typename... T>
|
template <typename... T>
|
||||||
consteval bool NotSameArithmeticTypes() {
|
consteval bool NotSameArithmeticTypes() {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
/// @ref core
|
/// @ref core
|
||||||
/// @file glm/detail/type_vec2.hpp
|
/// @file glm/detail/type_vec2.hpp
|
||||||
#if GLM_SIMD_CONSTEXPR == 0
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "qualifier.hpp"
|
#include "qualifier.hpp"
|
||||||
|
#if GLM_SIMD_CONSTEXPR == 0
|
||||||
#if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
|
#if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
|
||||||
# include "_swizzle.hpp"
|
# include "_swizzle.hpp"
|
||||||
#elif GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_FUNCTION
|
#elif GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_FUNCTION
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
/// @ref core
|
/// @ref core
|
||||||
/// @file glm/detail/type_vec3.hpp
|
/// @file glm/detail/type_vec3.hpp
|
||||||
#if GLM_SIMD_CONSTEXPR == 0
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "qualifier.hpp"
|
#include "qualifier.hpp"
|
||||||
|
#if GLM_SIMD_CONSTEXPR == 0
|
||||||
#if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
|
#if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
|
||||||
# include "_swizzle.hpp"
|
# include "_swizzle.hpp"
|
||||||
#elif GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_FUNCTION
|
#elif GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_FUNCTION
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
/// @ref core
|
/// @ref core
|
||||||
/// @file glm/detail/type_vec4.hpp
|
/// @file glm/detail/type_vec4.hpp
|
||||||
#if GLM_SIMD_CONSTEXPR == 0
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "qualifier.hpp"
|
#include "qualifier.hpp"
|
||||||
|
#if GLM_SIMD_CONSTEXPR == 0
|
||||||
#if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
|
#if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
|
||||||
# include "_swizzle.hpp"
|
# include "_swizzle.hpp"
|
||||||
#elif GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_FUNCTION
|
#elif GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_FUNCTION
|
||||||
|
Loading…
Reference in New Issue
Block a user