SDL 2.0
VULKAN_HPP_NAMESPACE::Extent3D Struct Reference

#include <vulkan.hpp>

Public Member Functions

 Extent3D (uint32_t width_=0, uint32_t height_=0, uint32_t depth_=0)
 
 Extent3D (Extent2D const &extent2D, uint32_t depth_=0)
 
 Extent3D (VkExtent3D const &rhs)
 
Extent3Doperator= (VkExtent3D const &rhs)
 
Extent3DsetWidth (uint32_t width_)
 
Extent3DsetHeight (uint32_t height_)
 
Extent3DsetDepth (uint32_t depth_)
 
 operator VkExtent3D const & () const
 
 operator VkExtent3D & ()
 
bool operator== (Extent3D const &rhs) const
 
bool operator!= (Extent3D const &rhs) const
 

Data Fields

uint32_t width
 
uint32_t height
 
uint32_t depth
 

Detailed Description

Definition at line 5280 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ Extent3D() [1/3]

VULKAN_HPP_NAMESPACE::Extent3D::Extent3D ( uint32_t  width_ = 0,
uint32_t  height_ = 0,
uint32_t  depth_ = 0 
)
inline

Definition at line 5282 of file vulkan.hpp.

5285 : width( width_ )
5286 , height( height_ )
5287 , depth( depth_ )
5288 {
5289 }

◆ Extent3D() [2/3]

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

Definition at line 5291 of file vulkan.hpp.

5293 : width( extent2D.width )
5294 , height( extent2D.height )
5295 , depth( depth_ )
5296 {}

◆ Extent3D() [3/3]

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

Definition at line 5298 of file vulkan.hpp.

5299 {
5300 memcpy( this, &rhs, sizeof( Extent3D ) );
5301 }
#define memcpy
Definition: SDL_malloc.c:630
Extent3D(uint32_t width_=0, uint32_t height_=0, uint32_t depth_=0)
Definition: vulkan.hpp:5282

References memcpy.

Member Function Documentation

◆ operator VkExtent3D &()

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

Definition at line 5331 of file vulkan.hpp.

5332 {
5333 return *reinterpret_cast<VkExtent3D*>(this);
5334 }

◆ operator VkExtent3D const &()

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

Definition at line 5326 of file vulkan.hpp.

5327 {
5328 return *reinterpret_cast<const VkExtent3D*>(this);
5329 }

◆ operator!=()

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

Definition at line 5343 of file vulkan.hpp.

5344 {
5345 return !operator==( rhs );
5346 }
bool operator==(Extent3D const &rhs) const
Definition: vulkan.hpp:5336

References operator==().

◆ operator=()

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

Definition at line 5303 of file vulkan.hpp.

5304 {
5305 memcpy( this, &rhs, sizeof( Extent3D ) );
5306 return *this;
5307 }

References memcpy.

◆ operator==()

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

Definition at line 5336 of file vulkan.hpp.

5337 {
5338 return ( width == rhs.width )
5339 && ( height == rhs.height )
5340 && ( depth == rhs.depth );
5341 }
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

References depth, height, and width.

Referenced by operator!=().

◆ setDepth()

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

Definition at line 5320 of file vulkan.hpp.

5321 {
5322 depth = depth_;
5323 return *this;
5324 }

◆ setHeight()

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

Definition at line 5314 of file vulkan.hpp.

5315 {
5316 height = height_;
5317 return *this;
5318 }

◆ setWidth()

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

Definition at line 5308 of file vulkan.hpp.

5309 {
5310 width = width_;
5311 return *this;
5312 }

Field Documentation

◆ depth

uint32_t VULKAN_HPP_NAMESPACE::Extent3D::depth

Definition at line 5350 of file vulkan.hpp.

Referenced by operator==().

◆ height

uint32_t VULKAN_HPP_NAMESPACE::Extent3D::height

Definition at line 5349 of file vulkan.hpp.

Referenced by operator==().

◆ width

uint32_t VULKAN_HPP_NAMESPACE::Extent3D::width

Definition at line 5348 of file vulkan.hpp.

Referenced by operator==().


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