TheAtlasEngine
 
Loading...
Searching...
No Matches
atlas::vulkan::swapchain Class Referenceexport

Public Member Functions

 swapchain (const VkSurfaceKHR &p_surface, const window_params &p_params)
 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_params settings () const
 
uint32_t image_size () const
 
surface_properties data () const
 
void destroy ()
 
void submit (std::span< const VkCommandBuffer > p_commands)
 
::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

◆ swapchain()

atlas::vulkan::swapchain::swapchain ( const VkSurfaceKHR p_surface,
const window_params p_params 
)
inlineexport

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::vulkan::swapchain::active_command ( uint32_t  p_frame_index)
inlineexport
Returns
current active command buffer being processed

◆ read_acquired_image()

uint32_t atlas::vulkan::swapchain::read_acquired_image ( )
inlineexport
Returns
uint32_t the next available image to present acquired

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