@@ -205,25 +205,25 @@ class HelloTriangleApplication {
205205
206206 VkQueue graphicsQueue;
207207 VkQueue presentQueue;
208-
208+
209209 VDeleter<VkSwapchainKHR> swapChain{device, vkDestroySwapchainKHR};
210210 std::vector<VkImage> swapChainImages;
211211 VkFormat swapChainImageFormat;
212212 VkExtent2D swapChainExtent;
213213 std::vector<VDeleter<VkImageView>> swapChainImageViews;
214214 std::vector<VDeleter<VkFramebuffer>> swapChainFramebuffers;
215-
215+
216216 VDeleter<VkRenderPass> renderPass{device, vkDestroyRenderPass};
217217 VDeleter<VkDescriptorSetLayout> descriptorSetLayout{device, vkDestroyDescriptorSetLayout};
218218 VDeleter<VkPipelineLayout> pipelineLayout{device, vkDestroyPipelineLayout};
219219 VDeleter<VkPipeline> graphicsPipeline{device, vkDestroyPipeline};
220-
220+
221221 VDeleter<VkCommandPool> commandPool{device, vkDestroyCommandPool};
222-
222+
223223 VDeleter<VkImage> depthImage{device, vkDestroyImage};
224224 VDeleter<VkDeviceMemory> depthImageMemory{device, vkFreeMemory};
225225 VDeleter<VkImageView> depthImageView{device, vkDestroyImageView};
226-
226+
227227 VDeleter<VkImage> textureImage{device, vkDestroyImage};
228228 VDeleter<VkDeviceMemory> textureImageMemory{device, vkFreeMemory};
229229 VDeleter<VkImageView> textureImageView{device, vkDestroyImageView};
@@ -297,7 +297,7 @@ class HelloTriangleApplication {
297297
298298 static void onWindowResized (GLFWwindow* window, int width, int height) {
299299 if (width == 0 || height == 0 ) return ;
300-
300+
301301 HelloTriangleApplication* app = reinterpret_cast <HelloTriangleApplication*>(glfwGetWindowUserPointer (window));
302302 app->recreateSwapChain ();
303303 }
@@ -527,11 +527,11 @@ class HelloTriangleApplication {
527527 depthAttachmentRef.attachment = 1 ;
528528 depthAttachmentRef.layout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL;
529529
530- VkSubpassDescription subPass = {};
531- subPass .pipelineBindPoint = VK_PIPELINE_BIND_POINT_GRAPHICS;
532- subPass .colorAttachmentCount = 1 ;
533- subPass .pColorAttachments = &colorAttachmentRef;
534- subPass .pDepthStencilAttachment = &depthAttachmentRef;
530+ VkSubpassDescription subpass = {};
531+ subpass .pipelineBindPoint = VK_PIPELINE_BIND_POINT_GRAPHICS;
532+ subpass .colorAttachmentCount = 1 ;
533+ subpass .pColorAttachments = &colorAttachmentRef;
534+ subpass .pDepthStencilAttachment = &depthAttachmentRef;
535535
536536 VkSubpassDependency dependency = {};
537537 dependency.srcSubpass = VK_SUBPASS_EXTERNAL;
@@ -547,7 +547,7 @@ class HelloTriangleApplication {
547547 renderPassInfo.attachmentCount = attachments.size ();
548548 renderPassInfo.pAttachments = attachments.data ();
549549 renderPassInfo.subpassCount = 1 ;
550- renderPassInfo.pSubpasses = &subPass ;
550+ renderPassInfo.pSubpasses = &subpass ;
551551 renderPassInfo.dependencyCount = 1 ;
552552 renderPassInfo.pDependencies = &dependency;
553553
@@ -1509,4 +1509,4 @@ int main() {
15091509 }
15101510
15111511 return EXIT_SUCCESS;
1512- }
1512+ }
0 commit comments