Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
Consistent naming
  • Loading branch information
SaschaWillems committed Nov 30, 2024
1 parent 04cc268 commit c754a4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions base/vulkanexamplebase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ void VulkanExampleBase::createPipelineCache()

void VulkanExampleBase::prepare()
{
initSwapchain();
createSurface();
createCommandPool();
setupSwapChain();
createSwapChain();
createCommandBuffers();
createSynchronizationPrimitives();
setupDepthStencil();
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand All @@ -3288,7 +3288,7 @@ void VulkanExampleBase::initSwapchain()
#endif
}

void VulkanExampleBase::setupSwapChain()
void VulkanExampleBase::createSwapChain()
{
swapChain.create(&width, &height, settings.vsync, settings.fullscreen);
}
Expand Down
4 changes: 2 additions & 2 deletions base/vulkanexamplebase.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ class VulkanExampleBase
void createPipelineCache();
void createCommandPool();
void createSynchronizationPrimitives();
void initSwapchain();
void setupSwapChain();
void createSurface();
void createSwapChain();
void createCommandBuffers();
void destroyCommandBuffers();
std::string shaderDir = "glsl";
Expand Down

0 comments on commit c754a4f

Please sign in to comment.