No longer submit initial depth/stencil image barrier outside of setup command buffer (#57), updated swapChain usage to recent refactorings

This commit is contained in:
saschawillems 2016-03-04 18:52:57 +01:00
parent 0e00f30fb1
commit edc92112df
3 changed files with 19 additions and 16 deletions

View file

@ -245,8 +245,8 @@ struct VulkanExample
vkGetPhysicalDeviceMemoryProperties(physicalDevice, &deviceMemoryProperties);
// Swap chain
swapChain.init(instance, physicalDevice, device);
swapChain.initSwapChain(app->window);
swapChain.connect(instance, physicalDevice, device);
swapChain.initSurface(app->window);
// Command buffer pool
VkCommandPoolCreateInfo cmdPoolInfo = {};
@ -264,15 +264,17 @@ struct VulkanExample
createSetupCommandBuffer();
startSetupCommandBuffer();
swapChain.setup(setupCmdBuffer, &width, &height);
flushSetupCommandBuffer();
createCommandBuffers();
swapChain.create(setupCmdBuffer, &width, &height);
setupDepthStencil();
setupRenderPass();
setupFrameBuffer();
flushSetupCommandBuffer();
createCommandBuffers();
prepareVertices();
prepareUniformBuffers();
setupDescriptorSetLayout();