24 lines
517 B
C++
24 lines
517 B
C++
//
|
|
// Created by Vicente Ferrari Smith on 13.02.26.
|
|
//
|
|
|
|
#ifndef V_SWAPCHAIN_H
|
|
#define V_SWAPCHAIN_H
|
|
|
|
#include "init.h"
|
|
#include <vector>
|
|
|
|
inline VkSwapchainKHR swapchain;
|
|
inline VkExtent2D swapchain_extent;
|
|
inline VkSurfaceFormatKHR swapchain_format{
|
|
VK_FORMAT_B8G8R8A8_UNORM,
|
|
VK_COLOR_SPACE_SRGB_NONLINEAR_KHR
|
|
};
|
|
|
|
inline std::vector<VkImage> images;
|
|
inline std::vector<VkImageView> imageViews;
|
|
inline std::vector<VkImageLayout> imageLayouts;
|
|
|
|
void createSwapchain(GLFWwindow* window);
|
|
|
|
#endif //V_SWAPCHAIN_H
|