VOX
A little voxel engine
Loading...
Searching...
No Matches
Swapchain Class Reference

#include <Swapchain.hpp>

Collaboration diagram for Swapchain:
Collaboration graph

Classes

struct  CreateInfo
 
struct  SupportDetails
 

Public Member Functions

 Swapchain ()
 
 Swapchain (VkDevice device, VkPhysicalDevice physical_device, VkSurfaceKHR surface, CreateInfo create_info)
 
 Swapchain (const Swapchain &)=delete
 
Swapchainoperator= (const Swapchain &)=delete
 
 Swapchain (Swapchain &&other) noexcept
 
Swapchainoperator= (Swapchain &&other) noexcept
 
 ~Swapchain ()
 
void clear ()
 

Static Public Member Functions

static SupportDetails querySwapChainSupport (VkPhysicalDevice physical_device, VkSurfaceKHR surface)
 

Public Attributes

VkSwapchainKHR swapchain
 
VkExtent2D extent
 
VkFormat image_format
 
std::vector< VkImage > images
 
std::vector< VkImageView > image_views
 

Constructor & Destructor Documentation

◆ Swapchain() [1/4]

Swapchain::Swapchain ( )

◆ Swapchain() [2/4]

Swapchain::Swapchain ( VkDevice  device,
VkPhysicalDevice  physical_device,
VkSurfaceKHR  surface,
CreateInfo  create_info 
)

◆ Swapchain() [3/4]

Swapchain::Swapchain ( const Swapchain )
delete

◆ Swapchain() [4/4]

Swapchain::Swapchain ( Swapchain &&  other)
noexcept

◆ ~Swapchain()

Swapchain::~Swapchain ( )

Member Function Documentation

◆ clear()

void Swapchain::clear ( )

◆ operator=() [1/2]

Swapchain & Swapchain::operator= ( const Swapchain )
delete

◆ operator=() [2/2]

Swapchain & Swapchain::operator= ( Swapchain &&  other)
noexcept

◆ querySwapChainSupport()

Swapchain::SupportDetails Swapchain::querySwapChainSupport ( VkPhysicalDevice  physical_device,
VkSurfaceKHR  surface 
)
static

Member Data Documentation

◆ extent

VkExtent2D Swapchain::extent

◆ image_format

VkFormat Swapchain::image_format

◆ image_views

std::vector<VkImageView> Swapchain::image_views

◆ images

std::vector<VkImage> Swapchain::images

◆ swapchain

VkSwapchainKHR Swapchain::swapchain

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