11 std::shared_ptr<RGL::DeviceVk> owningDevice;
12 std::shared_ptr<SurfaceVk> owningSurface;
13 VkSwapchainKHR swapChain = VK_NULL_HANDLE;
14 VkSemaphore imageAvailableSemaphore = VK_NULL_HANDLE, renderCompleteSemaphore = VK_NULL_HANDLE;
15 std::vector<VkImage> swapChainImages;
16 std::vector<VkImageView> swapChainImageViews;
17 std::vector<TextureVk> RGLTextureResources;
18 VkExtent2D swapChainExtent;
19 VkFormat swapChainImageFormat;
22 SwapchainVK(
decltype(owningSurface),
decltype(owningDevice),
int width,
int height);
23 void Resize(uint32_t, uint32_t)
final;
24 void GetNextImage(uint32_t* index)
final;
25 ITexture* ImageAtIndex(uint32_t index)
final {
26 return &(RGLTextureResources[index]);
31 void SetVsyncMode(
bool mode)
final;
35 void DestroySwapchainIfNeeded();
Definition Texture.hpp:168