Code cleanup

Consistent naming
This commit is contained in:
Sascha Willems 2024-11-30 21:21:07 +01:00
parent 04cc268ec3
commit c754a4f3ec
2 changed files with 7 additions and 7 deletions

View file

@ -203,9 +203,9 @@ void VulkanExampleBase::createPipelineCache()
void VulkanExampleBase::prepare()
{
initSwapchain();
createSurface();
createCommandPool();
setupSwapChain();
createSwapChain();
createCommandBuffers();
createSynchronizationPrimitives();
setupDepthStencil();
@ -3188,7 +3188,7 @@ void VulkanExampleBase::windowResize()
// Recreate swap chain
width = destWidth;
height = destHeight;
setupSwapChain();
createSwapChain();
// Recreate the frame buffers
vkDestroyImageView(device, depthStencil.view, nullptr);
@ -3265,7 +3265,7 @@ void VulkanExampleBase::handleMouseMove(int32_t x, int32_t y)
void VulkanExampleBase::windowResized() {}
void VulkanExampleBase::initSwapchain()
void VulkanExampleBase::createSurface()
{
#if defined(_WIN32)
swapChain.initSurface(windowInstance, window);
@ -3288,7 +3288,7 @@ void VulkanExampleBase::initSwapchain()
#endif
}
void VulkanExampleBase::setupSwapChain()
void VulkanExampleBase::createSwapChain()
{
swapChain.create(&width, &height, settings.vsync, settings.fullscreen);
}

View file

@ -86,8 +86,8 @@ private:
void createPipelineCache();
void createCommandPool();
void createSynchronizationPrimitives();
void initSwapchain();
void setupSwapChain();
void createSurface();
void createSwapChain();
void createCommandBuffers();
void destroyCommandBuffers();
std::string shaderDir = "glsl";