nngn
|
Aggregate type for information about a surface. More...
#include <swapchain.h>
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::PresentMode > | present_modes = {} |
Public Attributes inherited from nngn::Graphics::SurfaceInfo | |
u32 | min_images = {} |
u32 | max_images = {} |
uvec2 | min_extent = {} |
uvec2 | max_extent = {} |
uvec2 | cur_extent = {} |
Aggregate type for information about a surface.
VkSurfaceFormatKHR nngn::SurfaceInfo::find_format | ( | VkSurfaceFormatKHR | f | ) | const |
Returns f
if supported or a usable format for the surface.
VkPresentModeKHR nngn::SurfaceInfo::find_present_mode | ( | Graphics::PresentMode | m | ) | const |
Returns m
if supported or a usable mode for the surface.
void nngn::SurfaceInfo::init | ( | VkSurfaceKHR | s, |
VkPhysicalDevice | d ) |
Initializes all members.
Must be called before any other operation.
VkSurfaceTransformFlagBitsKHR nngn::SurfaceInfo::cur_transform = {} |
std::vector<VkSurfaceFormatKHR> nngn::SurfaceInfo::formats = {} |
std::vector<Graphics::PresentMode> nngn::SurfaceInfo::present_modes = {} |