summaryrefslogtreecommitdiff
path: root/engine/xe_swap_chain.hpp
diff options
context:
space:
mode:
authortylermurphy534 <tylermurphy534@gmail.com>2022-09-24 21:16:13 -0400
committertylermurphy534 <tylermurphy534@gmail.com>2022-09-24 21:16:13 -0400
commitf81d611f0e298baffad68d83f208e2306fe38739 (patch)
treef42732149fe2bfb7d28e26ed36067d24fb21b30c /engine/xe_swap_chain.hpp
parentdelete old files (diff)
downloadminecraftvulkan-f81d611f0e298baffad68d83f208e2306fe38739.tar.gz
minecraftvulkan-f81d611f0e298baffad68d83f208e2306fe38739.tar.bz2
minecraftvulkan-f81d611f0e298baffad68d83f208e2306fe38739.zip
remove Xe From engine class names
Diffstat (limited to 'engine/xe_swap_chain.hpp')
-rwxr-xr-xengine/xe_swap_chain.hpp18
1 files changed, 9 insertions, 9 deletions
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<XeSwapChain> previous);
- ~XeSwapChain();
+ SwapChain(Device &deviceRef, VkExtent2D windowExtent);
+ SwapChain(Device &deviceRef, VkExtent2D windowExtent, std::shared_ptr<SwapChain> 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<VkImage> swapChainImages;
std::vector<VkImageView> swapChainImageViews;
- XeDevice &device;
+ Device &device;
VkExtent2D windowExtent;
VkSwapchainKHR swapChain;
- std::shared_ptr<XeSwapChain> oldSwapChain;
+ std::shared_ptr<SwapChain> oldSwapChain;
std::vector<VkSemaphore> imageAvailableSemaphores;
std::vector<VkSemaphore> renderFinishedSemaphores;