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

View file

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