From f81d611f0e298baffad68d83f208e2306fe38739 Mon Sep 17 00:00:00 2001 From: tylermurphy534 Date: Sat, 24 Sep 2022 21:16:13 -0400 Subject: remove Xe From engine class names --- engine/xe_swap_chain.hpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'engine/xe_swap_chain.hpp') diff --git a/engine/xe_swap_chain.hpp b/engine/xe_swap_chain.hpp index a15a5a0..2d4e81b 100755 --- a/engine/xe_swap_chain.hpp +++ b/engine/xe_swap_chain.hpp @@ -11,16 +11,16 @@ namespace xe { -class XeSwapChain { +class SwapChain { public: static constexpr int MAX_FRAMES_IN_FLIGHT = 2; - XeSwapChain(XeDevice &deviceRef, VkExtent2D windowExtent); - XeSwapChain(XeDevice &deviceRef, VkExtent2D windowExtent, std::shared_ptr previous); - ~XeSwapChain(); + SwapChain(Device &deviceRef, VkExtent2D windowExtent); + SwapChain(Device &deviceRef, VkExtent2D windowExtent, std::shared_ptr previous); + ~SwapChain(); - XeSwapChain(const XeSwapChain &) = delete; - XeSwapChain operator=(const XeSwapChain &) = delete; + SwapChain(const SwapChain &) = delete; + SwapChain operator=(const SwapChain &) = delete; VkFramebuffer getFrameBuffer(int index) { return swapChainFramebuffers[index]; } VkRenderPass getRenderPass() { return renderPass; } @@ -39,7 +39,7 @@ class XeSwapChain { VkResult acquireNextImage(uint32_t *imageIndex); VkResult submitCommandBuffers(const VkCommandBuffer *buffers, uint32_t *imageIndex); - bool compareSwapFormats(const XeSwapChain& swapChain) const { + bool compareSwapFormats(const SwapChain& swapChain) const { return swapChain.swapChainDepthFormat == swapChainDepthFormat && swapChain.swapChainImageFormat == swapChainImageFormat; } @@ -72,11 +72,11 @@ class XeSwapChain { std::vector swapChainImages; std::vector swapChainImageViews; - XeDevice &device; + Device &device; VkExtent2D windowExtent; VkSwapchainKHR swapChain; - std::shared_ptr oldSwapChain; + std::shared_ptr oldSwapChain; std::vector imageAvailableSemaphores; std::vector renderFinishedSemaphores; -- cgit v1.2.3-freya