Android 编译通过,但肯定运行不了

This commit is contained in:
xsl
2025-10-16 16:40:41 +08:00
parent fc5d6e5cd8
commit 64a22ca513
4 changed files with 43 additions and 7 deletions
+11 -4
View File
@@ -1,8 +1,13 @@
#pragma once
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#ifdef _WIN32
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#else
#include <vulkan/vulkan.h>
#endif
#include <fstream>
#include <iostream>
#include <iostream>
@@ -61,7 +66,9 @@ public:
void run();
private:
#ifdef _WIN32
GLFWwindow *window;
#endif
VkInstance instance;
void initWindow();
@@ -113,6 +120,6 @@ private:
const std::vector<const char*> validationLayers = {
"VK_LAYER_KHRONOS_validation"
};
const int kWidth = 480;
const int kHeight = 480;
const uint32_t kWidth = 480;
const uint32_t kHeight = 480;
};