TheAtlasEngine
 
Loading...
Searching...
No Matches
atlas::vk::vk_swapchain Class Reference

Public Member Functions

 vk_swapchain (const VkSurfaceKHR &p_surface, const window_settings &p_settings)
 Constructs a new vulkan swapchain with a window settings to apply to this swapchain.
 
uint32_t read_acquired_image ()
 
::vk::command_buffer active_command (uint32_t p_frame_index)
 
VkFramebuffer active_framebuffer (uint32_t p_frame) const
 
VkRenderPass swapchain_renderpass () const
 
window_settings settings () const
 
uint32_t image_size () const
 
surface_properties data () const
 
void destroy ()
 
void submit (std::span< const VkCommandBuffer > p_command)
 
::vk::sample_image active_image (uint32_t p_index) const
 
 operator VkSwapchainKHR () const
 
 operator VkSwapchainKHR ()
 
void present (const uint32_t &p_current_frame)
 

Constructor & Destructor Documentation

◆ vk_swapchain()

atlas::vk::vk_swapchain::vk_swapchain ( const VkSurfaceKHR &  p_surface,
const window_settings p_settings 
)

Constructs a new vulkan swapchain with a window settings to apply to this swapchain.

Parameters
p_surfacepassing in the surface handler for swapchain uses

Member Function Documentation

◆ active_command()

::vk::command_buffer atlas::vk::vk_swapchain::active_command ( uint32_t  p_frame_index)
inline
Returns
current active command buffer being processed

◆ read_acquired_image()

uint32_t atlas::vk::vk_swapchain::read_acquired_image ( )
Returns
uint32_t the next available image to present acquired

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