@@ -131,21 +131,21 @@ class HelloTriangleApplication {
131131
132132 VkQueue graphicsQueue;
133133 VkQueue presentQueue;
134-
134+
135135 VkSwapchainKHR swapChain;
136136 std::vector<VkImage> swapChainImages;
137137 VkFormat swapChainImageFormat;
138138 VkExtent2D swapChainExtent;
139139 std::vector<VkImageView> swapChainImageViews;
140140 std::vector<VkFramebuffer> swapChainFramebuffers;
141-
141+
142142 VkRenderPass renderPass;
143143 VkDescriptorSetLayout descriptorSetLayout;
144144 VkPipelineLayout pipelineLayout;
145145 VkPipeline graphicsPipeline;
146-
146+
147147 VkCommandPool commandPool;
148-
148+
149149 VkBuffer vertexBuffer;
150150 VkDeviceMemory vertexBufferMemory;
151151 VkBuffer indexBuffer;
@@ -249,14 +249,14 @@ class HelloTriangleApplication {
249249
250250 static void onWindowResized (GLFWwindow* window, int width, int height) {
251251 if (width == 0 || height == 0 ) return ;
252-
252+
253253 HelloTriangleApplication* app = reinterpret_cast <HelloTriangleApplication*>(glfwGetWindowUserPointer (window));
254254 app->recreateSwapChain ();
255255 }
256256
257257 void recreateSwapChain () {
258258 vkDeviceWaitIdle (device);
259-
259+
260260 cleanupSwapChain ();
261261
262262 createSwapChain ();
@@ -607,7 +607,7 @@ class HelloTriangleApplication {
607607 colorBlending.blendConstants [1 ] = 0 .0f ;
608608 colorBlending.blendConstants [2 ] = 0 .0f ;
609609 colorBlending.blendConstants [3 ] = 0 .0f ;
610-
610+
611611 VkPipelineLayoutCreateInfo pipelineLayoutInfo = {};
612612 pipelineLayoutInfo.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO;
613613 pipelineLayoutInfo.setLayoutCount = 1 ;
0 commit comments