VERY experimental Nintendo Switch 2 emulator
C++
Move video_core/math.h to common/vector_math.h
archshift5df2d1b5f75e
diff --git a/src/citra_qt/debugger/graphics_cmdlists.cpp b/src/citra_qt/debugger/graphics_cmdlists.cppindex 804c735a31..cabf5fe07d 100644--- a/src/citra_qt/debugger/graphics_cmdlists.cpp+++ b/src/citra_qt/debugger/graphics_cmdlists.cpp@@ -11,10 +11,10 @@#include <QSpinBox>#include <QComboBox>-#include "video_core/pica.h"-#include "video_core/math.h"+#include "common/vector_math.h"#include "video_core/debug_utils/debug_utils.h"+#include "video_core/pica.h"#include "graphics_cmdlists.h"diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txtindex dbaaac77b1..d1c306d3ab 100644--- a/src/common/CMakeLists.txt+++ b/src/common/CMakeLists.txt@@ -54,6 +54,7 @@ set(HEADERSthread_queue_list.hthunk.htimer.h+ vector_math.h)create_directory_groups(${SRCS} ${HEADERS})diff --git a/src/video_core/math.h b/src/common/vector_math.hsimilarity index 100%rename from src/video_core/math.hrename to src/common/vector_math.hdiff --git a/src/video_core/CMakeLists.txt b/src/video_core/CMakeLists.txtindex 0258a3255e..f50f73b52e 100644--- a/src/video_core/CMakeLists.txt+++ b/src/video_core/CMakeLists.txt@@ -33,7 +33,6 @@ set(HEADERScommand_processor.hgpu_debugger.hhwrasterizer_base.h- math.hpica.hprimitive_assembly.hrasterizer.hdiff --git a/src/video_core/color.h b/src/video_core/color.hindex 4d2026eb01..422fdc8af8 100644--- a/src/video_core/color.h+++ b/src/video_core/color.h@@ -6,8 +6,7 @@#include "common/common_types.h"#include "common/swap.h"--#include "video_core/math.h"+#include "common/vector_math.h"namespace Color {diff --git a/src/video_core/debug_utils/debug_utils.cpp b/src/video_core/debug_utils/debug_utils.cppindex b92cd1a7e7..5392dae21a 100644--- a/src/video_core/debug_utils/debug_utils.cpp+++ b/src/video_core/debug_utils/debug_utils.cpp@@ -19,9 +19,9 @@#include "common/assert.h"#include "common/file_util.h"#include "common/math_util.h"+#include "common/vector_math.h"#include "video_core/color.h"-#include "video_core/math.h"#include "video_core/pica.h"#include "video_core/utils.h"#include "video_core/video_core.h"diff --git a/src/video_core/debug_utils/debug_utils.h b/src/video_core/debug_utils/debug_utils.hindex f361a53858..7926d64ec7 100644--- a/src/video_core/debug_utils/debug_utils.h+++ b/src/video_core/debug_utils/debug_utils.h@@ -12,7 +12,8 @@#include <mutex>#include <vector>-#include "video_core/math.h"+#include "common/vector_math.h"+#include "video_core/pica.h"namespace Pica {diff --git a/src/video_core/pica.h b/src/video_core/pica.hindex 6ebeb08f70..c556def037 100644--- a/src/video_core/pica.h+++ b/src/video_core/pica.h@@ -15,8 +15,7 @@#include "common/common_funcs.h"#include "common/common_types.h"#include "common/logging/log.h"--#include "math.h"+#include "common/vector_math.h"namespace Pica {diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cppindex 6f88a8b21f..2e4110a88c 100644--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp@@ -4,13 +4,13 @@#include "common/make_unique.h"#include "common/math_util.h"+#include "common/vector_math.h"#include "core/memory.h"#include "video_core/renderer_opengl/gl_rasterizer_cache.h"#include "video_core/renderer_opengl/pica_to_gl.h"#include "video_core/debug_utils/debug_utils.h"-#include "video_core/math.h"RasterizerCacheOpenGL::~RasterizerCacheOpenGL() {FullFlush();