CMSC23700 Common Code Library
Support code for CS23700 programming projects
Loading...
Searching...
No Matches
cs237::Window::SwapChainDetails Struct Reference

information about swap-chain support More...

#include <cs237-window.hpp>

Public Member Functions

vk::SurfaceFormatKHR chooseSurfaceFormat ()
 choose a surface format from the available formats
 
vk::PresentModeKHR choosePresentMode ()
 choose a presentation mode from the available modes; we prefer "mailbox" (aka triple buffering)
 
vk::Extent2D chooseExtent (GLFWwindow *win)
 get the extent of the window subject to the limits of the Vulkan device
 

Public Attributes

vk::SurfaceCapabilitiesKHR capabilities
 
std::vector< vk::SurfaceFormatKHR > formats
 
std::vector< vk::PresentModeKHR > presentModes
 

Detailed Description

information about swap-chain support

Member Function Documentation

◆ chooseExtent()

vk::Extent2D cs237::Window::SwapChainDetails::chooseExtent ( GLFWwindow *  win)

get the extent of the window subject to the limits of the Vulkan device

◆ choosePresentMode()

vk::PresentModeKHR cs237::Window::SwapChainDetails::choosePresentMode ( )

choose a presentation mode from the available modes; we prefer "mailbox" (aka triple buffering)

◆ chooseSurfaceFormat()

vk::SurfaceFormatKHR cs237::Window::SwapChainDetails::chooseSurfaceFormat ( )

choose a surface format from the available formats

Member Data Documentation

◆ capabilities

vk::SurfaceCapabilitiesKHR cs237::Window::SwapChainDetails::capabilities

◆ formats

std::vector<vk::SurfaceFormatKHR> cs237::Window::SwapChainDetails::formats

◆ presentModes

std::vector<vk::PresentModeKHR> cs237::Window::SwapChainDetails::presentModes

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