android 表面,扩展,实例都创建成功

This commit is contained in:
xsl
2025-10-18 17:57:55 +08:00
parent 966382a7dd
commit 2db7194305
8 changed files with 165 additions and 33 deletions
+2 -1
View File
@@ -11,7 +11,6 @@ class Application : public AppBase
public:
void run();
protected:
void initVulkan();
void initWindow();
void createSurface();
@@ -31,6 +30,7 @@ protected:
void recordCommandBuffer(VkCommandBuffer commandBuffer, uint32_t imageIndex);
void createSyncObjects();
void drawFrame();
bool isInited() { return inited; }
private:
VkPhysicalDevice physicalDevice = VK_NULL_HANDLE; // 物理设备
VkDevice device; // 逻辑设备
@@ -55,4 +55,5 @@ private:
std::vector<VkFence> imagesInFlight; // 跟踪每个图像的使用状态
int currentFrame = 0;
int MAX_FRAMES_IN_FLIGHT = 2;
bool inited = false;
};