SDL  2.0
VULKAN_HPP_NAMESPACE::Extent2D Struct Reference

#include <vulkan.hpp>

Public Member Functions

VULKAN_HPP_CONSTEXPR Extent2D (uint32_t width_={}, uint32_t height_={}) VULKAN_HPP_NOEXCEPT
 
VULKAN_HPP_CONSTEXPR Extent2D (Extent2D const &rhs) VULKAN_HPP_NOEXCEPT=default
 
 Extent2D (VkExtent2D const &rhs) VULKAN_HPP_NOEXCEPT
 
Extent2Doperator= (VkExtent2D const &rhs) VULKAN_HPP_NOEXCEPT
 
Extent2Doperator= (Extent2D const &rhs) VULKAN_HPP_NOEXCEPT
 
Extent2DsetWidth (uint32_t width_) VULKAN_HPP_NOEXCEPT
 
Extent2DsetHeight (uint32_t height_) VULKAN_HPP_NOEXCEPT
 
 operator VkExtent2D const & () const VULKAN_HPP_NOEXCEPT
 
 operator VkExtent2D & () VULKAN_HPP_NOEXCEPT
 
bool operator== (Extent2D const &rhs) const VULKAN_HPP_NOEXCEPT
 
bool operator!= (Extent2D const &rhs) const VULKAN_HPP_NOEXCEPT
 

Data Fields

uint32_t width = {}
 
uint32_t height = {}
 

Detailed Description

Definition at line 18746 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ Extent2D() [1/3]

VULKAN_HPP_CONSTEXPR VULKAN_HPP_NAMESPACE::Extent2D::Extent2D ( uint32_t  width_ = {},
uint32_t  height_ = {} 
)
inline

Definition at line 18751 of file vulkan.hpp.

18751  {}, uint32_t height_ = {}) VULKAN_HPP_NOEXCEPT
18752  : width( width_ ), height( height_ )
18753  {}
unsigned int uint32_t
#define VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:179

◆ Extent2D() [2/3]

VULKAN_HPP_CONSTEXPR VULKAN_HPP_NAMESPACE::Extent2D::Extent2D ( Extent2D const &  rhs)
default

◆ Extent2D() [3/3]

VULKAN_HPP_NAMESPACE::Extent2D::Extent2D ( VkExtent2D const &  rhs)
inline

Definition at line 18757 of file vulkan.hpp.

18758  {
18759  *this = rhs;
18760  }

Member Function Documentation

◆ operator VkExtent2D &()

VULKAN_HPP_NAMESPACE::Extent2D::operator VkExtent2D & ( )
inline

Definition at line 18793 of file vulkan.hpp.

18794  {
18795  return *reinterpret_cast<VkExtent2D*>( this );
18796  }

◆ operator VkExtent2D const &()

VULKAN_HPP_NAMESPACE::Extent2D::operator VkExtent2D const & ( ) const
inline

Definition at line 18788 of file vulkan.hpp.

18789  {
18790  return *reinterpret_cast<const VkExtent2D*>( this );
18791  }

◆ operator!=()

bool VULKAN_HPP_NAMESPACE::Extent2D::operator!= ( Extent2D const &  rhs) const
inline

Definition at line 18808 of file vulkan.hpp.

18809  {
18810  return !operator==( rhs );
18811  }
bool operator==(Extent2D const &rhs) const VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:18802

References VULKAN_HPP_NAMESPACE::operator==().

◆ operator=() [1/2]

Extent2D& VULKAN_HPP_NAMESPACE::Extent2D::operator= ( Extent2D const &  rhs)
inline

Definition at line 18769 of file vulkan.hpp.

18770  {
18771  memcpy( static_cast<void *>( this ), &rhs, sizeof( Extent2D ) );
18772  return *this;
18773  }
#define memcpy
Definition: SDL_malloc.c:630
VULKAN_HPP_CONSTEXPR Extent2D(uint32_t width_={}, uint32_t height_={}) VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:18751

References memcpy.

◆ operator=() [2/2]

Extent2D& VULKAN_HPP_NAMESPACE::Extent2D::operator= ( VkExtent2D const &  rhs)
inline

Definition at line 18763 of file vulkan.hpp.

18764  {
18765  *this = *reinterpret_cast<VULKAN_HPP_NAMESPACE::Extent2D const *>( &rhs );
18766  return *this;
18767  }

◆ operator==()

bool VULKAN_HPP_NAMESPACE::Extent2D::operator== ( Extent2D const &  rhs) const
inline

Definition at line 18802 of file vulkan.hpp.

18803  {
18804  return ( width == rhs.width )
18805  && ( height == rhs.height );
18806  }
GLint GLint GLsizei width
Definition: SDL_opengl.h:1572
GLint GLint GLsizei GLsizei height
Definition: SDL_opengl.h:1572

◆ setHeight()

Extent2D& VULKAN_HPP_NAMESPACE::Extent2D::setHeight ( uint32_t  height_)
inline

Definition at line 18781 of file vulkan.hpp.

18782  {
18783  height = height_;
18784  return *this;
18785  }

◆ setWidth()

Extent2D& VULKAN_HPP_NAMESPACE::Extent2D::setWidth ( uint32_t  width_)
inline

Definition at line 18775 of file vulkan.hpp.

18776  {
18777  width = width_;
18778  return *this;
18779  }

Field Documentation

◆ height

uint32_t VULKAN_HPP_NAMESPACE::Extent2D::height = {}

Definition at line 18818 of file vulkan.hpp.

◆ width

uint32_t VULKAN_HPP_NAMESPACE::Extent2D::width = {}

Definition at line 18817 of file vulkan.hpp.


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