android 表面,扩展,实例都创建成功
This commit is contained in:
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user