Android 编译通过,但肯定运行不了
This commit is contained in:
+11
-4
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user