Fixed uneeded copies of TriangleVertices
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
#include <cstdint> // Necessary for uint32_t
|
||||
#include <limits> // Necessary for std::numeric_limits
|
||||
#include <algorithm> // Necessary for std::clamp
|
||||
#include <set>
|
||||
#include <vulkan/vulkan_core.h>
|
||||
|
||||
#include "utilities/Logger.h"
|
||||
@@ -23,16 +22,6 @@ void VulkanSwapChain::Initialize(FSwapConfig InSwapConfig)
|
||||
SwapConfig = InSwapConfig;
|
||||
}
|
||||
|
||||
// void VulkanSwapChain::Initialize(
|
||||
// VkDevice InDevice,
|
||||
// VkSurfaceKHR InSurface,
|
||||
// GLFWwindow* InWindow)
|
||||
// {
|
||||
// Device = InDevice;
|
||||
// Surface = InSurface;
|
||||
// Window = InWindow;
|
||||
// }
|
||||
|
||||
void VulkanSwapChain::Cleanup()
|
||||
{
|
||||
for (auto ImageView : SwapChainImageViews)
|
||||
@@ -139,7 +128,6 @@ void VulkanSwapChain::CreateSwapChain()
|
||||
CreateInfo.clipped = VK_TRUE;
|
||||
CreateInfo.oldSwapchain = VK_NULL_HANDLE;
|
||||
|
||||
Log::Info("ChooseSwapExtent 3");
|
||||
if (vkCreateSwapchainKHR(SwapConfig.Device, &CreateInfo, nullptr, &SwapChain) != VK_SUCCESS)
|
||||
{
|
||||
Log::Error("Failed to create swap chain.");
|
||||
@@ -193,11 +181,3 @@ void VulkanSwapChain::CreateImageViews()
|
||||
|
||||
Log::Info("Successfully created " + std::to_string(CreatedViews) + " image views.");
|
||||
}
|
||||
|
||||
// void VulkanSwapChain::RecreateSwapChain()
|
||||
// {
|
||||
// vkDeviceWaitIdle(SwapConfig.Device);
|
||||
//
|
||||
// CreateSwapChain();
|
||||
// CreateImageViews();
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user