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.
 

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()

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_present_mode()

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:

◆ init()

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:

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: