nngn
Loading...
Searching...
No Matches
nngn::SurfaceInfo Struct Reference

Aggregate type for information about a surface. More...

#include <swapchain.h>

Inheritance diagram for nngn::SurfaceInfo:
Collaboration diagram for nngn::SurfaceInfo:

Public Member Functions

void init (VkSurfaceKHR s, VkPhysicalDevice d)
 Initializes all members.
 
VkSurfaceFormatKHR find_format (VkSurfaceFormatKHR f) const
 Returns f if supported or a usable format for the surface.
 
VkPresentModeKHR find_present_mode (Graphics::PresentMode m) const
 Returns m if supported or a usable mode for the surface.
 
void init (VkSurfaceKHR s, VkPhysicalDevice d)
 Initializes all members.
 
VkSurfaceFormatKHR find_format (VkSurfaceFormatKHR f) const
 Returns f if supported or a usable format for the surface.
 
VkPresentModeKHR find_present_mode (Graphics::PresentMode m) const
 Returns m if supported or a usable mode for the surface.
 

Public Attributes

VkSurfaceTransformFlagBitsKHR cur_transform = {}
 
std::vector< VkSurfaceFormatKHR > formats = {}
 
std::vector< Graphics::PresentModepresent_modes = {}
 
- Public Attributes inherited from nngn::Graphics::SurfaceInfo
u32 min_images = {}
 
u32 max_images = {}
 
uvec2 min_extent = {}
 
uvec2 max_extent = {}
 
uvec2 cur_extent = {}
 

Detailed Description

Aggregate type for information about a surface.

Member Function Documentation

◆ find_format() [1/2]

VkSurfaceFormatKHR nngn::SurfaceInfo::find_format ( VkSurfaceFormatKHR  f) const

Returns f if supported or a usable format for the surface.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ find_format() [2/2]

VkSurfaceFormatKHR nngn::SurfaceInfo::find_format ( VkSurfaceFormatKHR  f) const

Returns f if supported or a usable format for the surface.

◆ find_present_mode() [1/2]

VkPresentModeKHR nngn::SurfaceInfo::find_present_mode ( Graphics::PresentMode  m) const

Returns m if supported or a usable mode for the surface.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ find_present_mode() [2/2]

VkPresentModeKHR nngn::SurfaceInfo::find_present_mode ( Graphics::PresentMode  m) const

Returns m if supported or a usable mode for the surface.

◆ init() [1/2]

void nngn::SurfaceInfo::init ( VkSurfaceKHR  s,
VkPhysicalDevice  d 
)

Initializes all members.

Must be called before any other operation.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init() [2/2]

void nngn::SurfaceInfo::init ( VkSurfaceKHR  s,
VkPhysicalDevice  d 
)

Initializes all members.

Must be called before any other operation.

Member Data Documentation

◆ cur_transform

VkSurfaceTransformFlagBitsKHR nngn::SurfaceInfo::cur_transform = {}

◆ formats

std::vector< VkSurfaceFormatKHR > nngn::SurfaceInfo::formats = {}

◆ present_modes

std::vector< Graphics::PresentMode > nngn::SurfaceInfo::present_modes = {}

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