Swapchain code cleanup
Use references instead of pointers
This commit is contained in:
parent
372cab5779
commit
dcec337fa9
12 changed files with 65 additions and 85 deletions
|
|
@ -210,7 +210,7 @@ public:
|
|||
frameBuffers.resize(swapChain.imageCount);
|
||||
for (uint32_t i = 0; i < frameBuffers.size(); i++)
|
||||
{
|
||||
views[0] = swapChain.buffers[i].view;
|
||||
views[0] = swapChain.imageViews[i];
|
||||
views[1] = attachments[i].color.view;
|
||||
views[2] = attachments[i].depth.view;
|
||||
VK_CHECK_RESULT(vkCreateFramebuffer(device, &frameBufferCI, nullptr, &frameBuffers[i]));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue