RavEngine
Loading...
Searching...
No Matches
RGL::SwapchainVK Struct Reference
Inheritance diagram for RGL::SwapchainVK:
[legend]
Collaboration diagram for RGL::SwapchainVK:
[legend]

Public Member Functions

 SwapchainVK (decltype(owningSurface), decltype(owningDevice), int width, int height)
 
void Resize (uint32_t, uint32_t) final
 
void GetNextImage (uint32_t *index) final
 
ITexture * ImageAtIndex (uint32_t index) final
 
void Present (const SwapchainPresentConfig &) final
 
void SetVsyncMode (bool mode) final
 

Public Attributes

std::shared_ptr< RGL::DeviceVk > owningDevice
 
std::shared_ptr< SurfaceVk > owningSurface
 
VkSwapchainKHR swapChain = VK_NULL_HANDLE
 
VkSemaphore imageAvailableSemaphore = VK_NULL_HANDLE
 
VkSemaphore renderCompleteSemaphore = VK_NULL_HANDLE
 
std::vector< VkImage > swapChainImages
 
std::vector< VkImageView > swapChainImageViews
 
std::vector< TextureVk > RGLTextureResources
 
VkExtent2D swapChainExtent
 
VkFormat swapChainImageFormat
 

Member Function Documentation

◆ GetNextImage()

void RGL::SwapchainVK::GetNextImage ( uint32_t *  index)
finalvirtual

Implements RGL::ISwapchain.

◆ ImageAtIndex()

ITexture * RGL::SwapchainVK::ImageAtIndex ( uint32_t  index)
inlinefinalvirtual

Implements RGL::ISwapchain.

◆ Present()

void RGL::SwapchainVK::Present ( const SwapchainPresentConfig &  )
finalvirtual

Implements RGL::ISwapchain.

◆ Resize()

void RGL::SwapchainVK::Resize ( uint32_t  ,
uint32_t   
)
finalvirtual

Implements RGL::ISwapchain.

◆ SetVsyncMode()

void RGL::SwapchainVK::SetVsyncMode ( bool  mode)
finalvirtual

Implements RGL::ISwapchain.


The documentation for this struct was generated from the following file: