UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
vulkan_display::ImageDescription Struct Reference

#include <vulkan_transfer_image.hpp>

Collaboration diagram for vulkan_display::ImageDescription:
Collaboration graph

Public Member Functions

 ImageDescription ()=default
 
 ImageDescription (uint32_t width, uint32_t height, Format format)
 
 ImageDescription (vk::Extent2D size, Format format)
 
const detail::FormatInfo & format_info () const
 
bool operator!= (const ImageDescription &other) const
 
bool operator== (const ImageDescription &other) const
 

Public Attributes

Format format = Format::uninitialized
 
vk::Extent2D size {}
 

Detailed Description

Definition at line 99 of file vulkan_transfer_image.hpp.

Constructor & Destructor Documentation

◆ ImageDescription() [1/3]

vulkan_display::ImageDescription::ImageDescription ( )
default

◆ ImageDescription() [2/3]

vulkan_display::ImageDescription::ImageDescription ( vk::Extent2D size,
Format format )
inline

◆ ImageDescription() [3/3]

vulkan_display::ImageDescription::ImageDescription ( uint32_t width,
uint32_t height,
Format format )
inline

Definition at line 106 of file vulkan_transfer_image.hpp.

106 :
107 ImageDescription{ vk::Extent2D{width, height}, format } { }

Member Function Documentation

◆ format_info()

const detail::FormatInfo & vulkan_display::ImageDescription::format_info ( ) const
inline

Definition at line 119 of file vulkan_transfer_image.hpp.

119{ return detail::format_info(format); }
const FormatInfo & format_info(vulkan_display::Format format)

References format, and vulkan_display_detail::format_info().

Referenced by vulkan_display::VulkanDisplay::reconfigure().

Here is the call graph for this function:

◆ operator!=()

bool vulkan_display::ImageDescription::operator!= ( const ImageDescription & other) const
inline

Definition at line 115 of file vulkan_transfer_image.hpp.

115 {
116 return !(*this == other);
117 }

◆ operator==()

bool vulkan_display::ImageDescription::operator== ( const ImageDescription & other) const
inline

Definition at line 109 of file vulkan_transfer_image.hpp.

109 {
110 return size.width == other.size.width
111 && size.height == other.size.height
112 && format == other.format;
113 }

References format, and size.

Member Data Documentation

◆ format

Format vulkan_display::ImageDescription::format = Format::uninitialized

Definition at line 101 of file vulkan_transfer_image.hpp.

Referenced by format_info(), and operator==().

◆ size


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