Index buffer support to allow for reusing of the same vertices. Next commits will be refactors and documentation, graphs and flows of execution

This commit is contained in:
2024-10-10 02:26:13 -05:00
parent 7e625a3db5
commit edfbddea55
8 changed files with 131 additions and 39 deletions

View File

@@ -269,7 +269,7 @@ namespace DeviceControl {
createSwapChainInfo.clipped = VK_TRUE;
// This is something that needs to be implemented later, operations like resizing the window invalidate the swap chain and
// require you to recreate it and reference the old one specified here, will revisit in a few days.
createSwapChainInfo.oldSwapchain = VK_NULL_HANDLE;
//createSwapChainInfo.oldSwapchain = VK_NULL_HANDLE;
if(vkCreateSwapchainKHR(Global::device, &createSwapChainInfo, nullptr, &Global::swapChain) != VK_SUCCESS) {
throw std::runtime_error("Failed to create the swap chain!!");