SDL  2.0
VULKAN_HPP_NAMESPACE::Extent3D Struct Reference

#include <vulkan.hpp>

Public Member Functions

VULKAN_HPP_CONSTEXPR Extent3D (uint32_t width_={}, uint32_t height_={}, uint32_t depth_={}) VULKAN_HPP_NOEXCEPT
 
VULKAN_HPP_CONSTEXPR Extent3D (Extent3D const &rhs) VULKAN_HPP_NOEXCEPT=default
 
 Extent3D (VkExtent3D const &rhs) VULKAN_HPP_NOEXCEPT
 
 Extent3D (Extent2D const &extent2D, uint32_t depth_={})
 
Extent3Doperator= (VkExtent3D const &rhs) VULKAN_HPP_NOEXCEPT
 
Extent3Doperator= (Extent3D const &rhs) VULKAN_HPP_NOEXCEPT
 
Extent3DsetWidth (uint32_t width_) VULKAN_HPP_NOEXCEPT
 
Extent3DsetHeight (uint32_t height_) VULKAN_HPP_NOEXCEPT
 
Extent3DsetDepth (uint32_t depth_) VULKAN_HPP_NOEXCEPT
 
 operator VkExtent3D const & () const VULKAN_HPP_NOEXCEPT
 
 operator VkExtent3D & () VULKAN_HPP_NOEXCEPT
 
bool operator== (Extent3D const &rhs) const VULKAN_HPP_NOEXCEPT
 
bool operator!= (Extent3D const &rhs) const VULKAN_HPP_NOEXCEPT
 

Data Fields

uint32_t width = {}
 
uint32_t height = {}
 
uint32_t depth = {}
 

Detailed Description

Definition at line 21017 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ Extent3D() [1/4]

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

Definition at line 21022 of file vulkan.hpp.

21022  {}, uint32_t height_ = {}, uint32_t depth_ = {}) VULKAN_HPP_NOEXCEPT
21023  : width( width_ ), height( height_ ), depth( depth_ )
21024  {}
unsigned int uint32_t
#define VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:179

◆ Extent3D() [2/4]

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

◆ Extent3D() [3/4]

VULKAN_HPP_NAMESPACE::Extent3D::Extent3D ( VkExtent3D const &  rhs)
inline

Definition at line 21028 of file vulkan.hpp.

21029  {
21030  *this = rhs;
21031  }

◆ Extent3D() [4/4]

VULKAN_HPP_NAMESPACE::Extent3D::Extent3D ( Extent2D const &  extent2D,
uint32_t  depth_ = {} 
)
inlineexplicit

Definition at line 21033 of file vulkan.hpp.

21033  {} )
21034  : width( extent2D.width )
21035  , height( extent2D.height )
21036  , depth( depth_ )
21037  {}

Member Function Documentation

◆ operator VkExtent3D &()

VULKAN_HPP_NAMESPACE::Extent3D::operator VkExtent3D & ( )
inline

Definition at line 21076 of file vulkan.hpp.

21077  {
21078  return *reinterpret_cast<VkExtent3D*>( this );
21079  }

◆ operator VkExtent3D const &()

VULKAN_HPP_NAMESPACE::Extent3D::operator VkExtent3D const & ( ) const
inline

Definition at line 21071 of file vulkan.hpp.

21072  {
21073  return *reinterpret_cast<const VkExtent3D*>( this );
21074  }

◆ operator!=()

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

Definition at line 21092 of file vulkan.hpp.

21093  {
21094  return !operator==( rhs );
21095  }
bool operator==(Extent3D const &rhs) const VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:21085

References VULKAN_HPP_NAMESPACE::operator==().

◆ operator=() [1/2]

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

Definition at line 21046 of file vulkan.hpp.

21047  {
21048  memcpy( static_cast<void *>( this ), &rhs, sizeof( Extent3D ) );
21049  return *this;
21050  }
#define memcpy
Definition: SDL_malloc.c:630
VULKAN_HPP_CONSTEXPR Extent3D(uint32_t width_={}, uint32_t height_={}, uint32_t depth_={}) VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:21022

References memcpy.

◆ operator=() [2/2]

Extent3D& VULKAN_HPP_NAMESPACE::Extent3D::operator= ( VkExtent3D const &  rhs)
inline

Definition at line 21040 of file vulkan.hpp.

21041  {
21042  *this = *reinterpret_cast<VULKAN_HPP_NAMESPACE::Extent3D const *>( &rhs );
21043  return *this;
21044  }

◆ operator==()

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

Definition at line 21085 of file vulkan.hpp.

21086  {
21087  return ( width == rhs.width )
21088  && ( height == rhs.height )
21089  && ( depth == rhs.depth );
21090  }
GLint GLint GLsizei width
Definition: SDL_opengl.h:1572
GLint GLint GLsizei GLsizei GLsizei depth
Definition: SDL_opengl.h:1572
GLint GLint GLsizei GLsizei height
Definition: SDL_opengl.h:1572

◆ setDepth()

Extent3D& VULKAN_HPP_NAMESPACE::Extent3D::setDepth ( uint32_t  depth_)
inline

Definition at line 21064 of file vulkan.hpp.

21065  {
21066  depth = depth_;
21067  return *this;
21068  }

◆ setHeight()

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

Definition at line 21058 of file vulkan.hpp.

21059  {
21060  height = height_;
21061  return *this;
21062  }

◆ setWidth()

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

Definition at line 21052 of file vulkan.hpp.

21053  {
21054  width = width_;
21055  return *this;
21056  }

Field Documentation

◆ depth

uint32_t VULKAN_HPP_NAMESPACE::Extent3D::depth = {}

Definition at line 21103 of file vulkan.hpp.

◆ height

uint32_t VULKAN_HPP_NAMESPACE::Extent3D::height = {}

Definition at line 21102 of file vulkan.hpp.

◆ width

uint32_t VULKAN_HPP_NAMESPACE::Extent3D::width = {}

Definition at line 21101 of file vulkan.hpp.


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