Fixing Math includes

This commit is contained in:
Thorben Höhne
2025-02-19 12:17:08 +01:00
parent d6362a62df
commit 1fbbdf5f0a
57 changed files with 240 additions and 312 deletions

View File

@@ -1,6 +1,6 @@
#pragma once
#include "Core/public/Math/Boilerplate.h"
#include "Core/Math/Boilerplate.h"
namespace Phanes::Core::Math::SIMD

View File

@@ -4,8 +4,8 @@
//
// ARM is not supported.
#include "Core/public/Math/SIMD/Platform.h"
#include "Core/public/Math/MathTypes.h"
#include "Core/Math/SIMD/Platform.h"
#include "Core/Math/MathTypes.h"
#if P_INTRINSICS == P_INTRINSICS_AVX2
# include <immintrin.h>

View File

@@ -2,23 +2,23 @@
#include <nmmintrin.h>
#include "Core/public/Math/SIMD/PhanesSIMDTypes.h"
#include "Core/public/Math/Boilerplate.h"
#include "Core/public/Math/MathCommon.hpp"
#include "Core/Math/SIMD/PhanesSIMDTypes.h"
#include "Core/Math/Boilerplate.h"
#include "Core/Math/MathCommon.hpp"
#include "Core/public/Math/Vector2.hpp"
#include "Core/public/Math/Vector3.hpp"
#include "Core/public/Math/Vector4.hpp"
#include "Core/Math/Vector2.hpp"
#include "Core/Math/Vector3.hpp"
#include "Core/Math/Vector4.hpp"
#include "Core/public/Math/Plane.hpp"
#include "Core/Math/Plane.hpp"
#include "Core/public/Math/IntVector2.hpp"
#include "Core/public/Math/IntVector3.hpp"
#include "Core/public/Math/IntVector4.hpp"
#include "Core/Math/IntVector2.hpp"
#include "Core/Math/IntVector3.hpp"
#include "Core/Math/IntVector4.hpp"
#include "Core/public/Math/Matrix3.hpp"
#include "Core/public/Math/Matrix4.hpp"
#include "Core/Math/Matrix3.hpp"
#include "Core/Math/Matrix4.hpp"

View File

@@ -23,9 +23,9 @@
// User defines build platform
#ifdef P_WIN_BUILD
# define P_PLATFORM P_PLATFORM_WIN
# error Windows system is not yet supported.
#elif P_LINUX_BUILD
# define P_PLATFORM P_PLATFORM_LIN
# error Linux / Unix system is not yet supported.
#elif P_MAC_BUILD
# define P_PLATFORM P_PLATFORM_MAC
# error Mac target system is not yet supported.
@@ -142,7 +142,6 @@
// Clang
#elif (defined(__clang__))
# error PhanesEngine only supports MSVC -> Visual Studio
# if defined(__apple_build_version__)
#
# if (__clang_major__ < 6)

View File

@@ -1,15 +1,15 @@
#pragma once
#include "Core/public/Math/SIMD/Platform.h"
#include "Core/Math/SIMD/Platform.h"
#if P_INTRINSICS == P_INTRINSICS_AVX2
# include "PhanesVectorMathAVX2.hpp"
# include "Core/Math/SIMD/PhanesVectorMathAVX2.hpp"
#elif P_INTRINSICS == P_INTRINSICS_AVX
# include "PhanesVectorMathAVX.hpp"
# include "Core/Math/SIMD/PhanesVectorMathAVX.hpp"
#elif P_INTRINSICS == P_INTRINSICS_SSE
# include "PhanesVectorMathSSE.hpp"
# include "Core/Math/SIMD/PhanesVectorMathSSE.hpp"
#elif P_INTRINSICS == P_INTRINSICS_NEON
# include "PhanesVectorMathNeon.hpp"
# include "Core/Math/SIMD/PhanesVectorMathNeon.hpp"
#endif

View File

@@ -1,9 +1,9 @@
// Defines on compile time, whether a xmm register or an array should be used.
#pragma once
#include "Core/public/Math/SIMD/PhanesSIMDTypes.h"
#include "Core/Math/SIMD/PhanesSIMDTypes.h"
#include "Core/public/Math/MathTypes.h"
#include "Core/Math/MathTypes.h"
namespace Phanes::Core::Math::SIMD
{