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:
parent
e2c6246d69
commit
51f76c4845
1 changed files with 7 additions and 5 deletions
|
|
@ -234,8 +234,8 @@ struct VulkanExample
|
||||||
vkGetPhysicalDeviceMemoryProperties(physicalDevice, &deviceMemoryProperties);
|
vkGetPhysicalDeviceMemoryProperties(physicalDevice, &deviceMemoryProperties);
|
||||||
|
|
||||||
// Swap chain
|
// Swap chain
|
||||||
swapChain.init(instance, physicalDevice, device);
|
swapChain.connect(instance, physicalDevice, device);
|
||||||
swapChain.initSwapChain(app->window);
|
swapChain.initSurface(app->window);
|
||||||
|
|
||||||
// Command buffer pool
|
// Command buffer pool
|
||||||
VkCommandPoolCreateInfo cmdPoolInfo = {};
|
VkCommandPoolCreateInfo cmdPoolInfo = {};
|
||||||
|
|
@ -254,15 +254,17 @@ struct VulkanExample
|
||||||
createSetupCommandBuffer();
|
createSetupCommandBuffer();
|
||||||
|
|
||||||
startSetupCommandBuffer();
|
startSetupCommandBuffer();
|
||||||
swapChain.setup(setupCmdBuffer, &width, &height);
|
|
||||||
flushSetupCommandBuffer();
|
|
||||||
|
|
||||||
createCommandBuffers();
|
swapChain.create(setupCmdBuffer, &width, &height);
|
||||||
|
|
||||||
setupDepthStencil();
|
setupDepthStencil();
|
||||||
setupRenderPass();
|
setupRenderPass();
|
||||||
setupFrameBuffer();
|
setupFrameBuffer();
|
||||||
|
|
||||||
|
flushSetupCommandBuffer();
|
||||||
|
|
||||||
|
createCommandBuffers();
|
||||||
|
|
||||||
prepareVertices();
|
prepareVertices();
|
||||||
prepareUniformBuffers();
|
prepareUniformBuffers();
|
||||||
setupDescriptorSetLayout();
|
setupDescriptorSetLayout();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue