summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index 74aaec6..06a691a 100644
--- a/main.cpp
+++ b/main.cpp
@@ -9,6 +9,7 @@
#if ARM
#include <arm_neon.h>
+#include <arm_sve.h>
#else
#include <smmintrin.h>
#endif
@@ -244,12 +245,16 @@ int main(int argc, char *argv[]) {
project_state State = {};
+#if ARM
+ InstructionMode = instruction_mode_neon;
+#else
if (SDL_HasSSE2()) {
InstructionMode = instruction_mode_sse;
}
if (SDL_HasAVX2()) {
InstructionMode = instruction_mode_avx;
}
+#endif
project_data File = {};
File.Width = 1280;
@@ -360,8 +365,11 @@ int main(int argc, char *argv[]) {
SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8);
SDL_WindowFlags window_flags = (SDL_WindowFlags)(SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI);
#if DEBUG
- // uint32 ScreenSize[2] = {2560/1.2, 1600/1.2};
+#if ARM
+ uint32 ScreenSize[2] = {(uint32)(2560/1.2), (uint32)(1600/1.2)};
+#else
real32 ScreenSize[2] = {3840/1.2, 2160/1.2};
+#endif
#else
real32 ScreenSize[2];
SDL_DisplayMode current;
@@ -452,7 +460,7 @@ int main(int argc, char *argv[]) {
ImGui::DockSpaceOverViewport();
- ImGui_Viewport(File, &State, &UI, CompBuffer, io, textureID);
+ ImGui_Viewport(File, &State, &UI, &Memory, CompBuffer, io, textureID);
ImGui_File(&File, &State, &Memory, &UI, io);