VulkanRenderer/Swapchain: Rename Buffer to Image

This commit is contained in:
Jérôme Leclercq
2020-09-04 15:58:07 +02:00
parent 55ac0ccdf6
commit 53e5aa924f
3 changed files with 19 additions and 19 deletions

View File

@@ -368,12 +368,12 @@ namespace Nz
bool VkRenderWindow::SetupFrameBuffers(const Vector2ui& size)
{
UInt32 imageCount = m_swapchain.GetBufferCount();
UInt32 imageCount = m_swapchain.GetImageCount();
Nz::StackArray<Vk::Framebuffer> framebuffers = NazaraStackArray(Vk::Framebuffer, imageCount);
for (UInt32 i = 0; i < imageCount; ++i)
{
std::array<VkImageView, 2> attachments = { m_swapchain.GetBuffer(i).view, m_depthBufferView };
std::array<VkImageView, 2> attachments = { m_swapchain.GetImage(i).view, m_depthBufferView };
VkFramebufferCreateInfo frameBufferCreate = {
VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO,