SDL  2.0
VULKAN_HPP_NAMESPACE::DebugUtilsLabelEXT Struct Reference

#include <vulkan.hpp>

Public Member Functions

 DebugUtilsLabelEXT (const char *pLabelName_=nullptr, std::array< float, 4 > const &color_={ { 0, 0, 0, 0 } })
 
 DebugUtilsLabelEXT (VkDebugUtilsLabelEXT const &rhs)
 
DebugUtilsLabelEXToperator= (VkDebugUtilsLabelEXT const &rhs)
 
DebugUtilsLabelEXTsetPNext (const void *pNext_)
 
DebugUtilsLabelEXTsetPLabelName (const char *pLabelName_)
 
DebugUtilsLabelEXTsetColor (std::array< float, 4 > color_)
 
 operator VkDebugUtilsLabelEXT const & () const
 
 operator VkDebugUtilsLabelEXT & ()
 
bool operator== (DebugUtilsLabelEXT const &rhs) const
 
bool operator!= (DebugUtilsLabelEXT const &rhs) const
 

Data Fields

const voidpNext = nullptr
 
const char * pLabelName
 
float color [4]
 

Private Attributes

StructureType sType = StructureType::eDebugUtilsLabelEXT
 

Detailed Description

Definition at line 17386 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ DebugUtilsLabelEXT() [1/2]

VULKAN_HPP_NAMESPACE::DebugUtilsLabelEXT::DebugUtilsLabelEXT ( const char *  pLabelName_ = nullptr,
std::array< float, 4 > const &  color_ = { { 0, 0, 0, 0 } } 
)
inline

Definition at line 17388 of file vulkan.hpp.

References memcpy.

17389  { { 0, 0, 0, 0 } } )
17390  : pLabelName( pLabelName_ )
17391  {
17392  memcpy( &color, color_.data(), 4 * sizeof( float ) );
17393  }
#define memcpy
Definition: SDL_malloc.c:630
GLuint color

◆ DebugUtilsLabelEXT() [2/2]

VULKAN_HPP_NAMESPACE::DebugUtilsLabelEXT::DebugUtilsLabelEXT ( VkDebugUtilsLabelEXT const &  rhs)
inline

Definition at line 17395 of file vulkan.hpp.

References memcpy.

17396  {
17397  memcpy( this, &rhs, sizeof( DebugUtilsLabelEXT ) );
17398  }
#define memcpy
Definition: SDL_malloc.c:630
DebugUtilsLabelEXT(const char *pLabelName_=nullptr, std::array< float, 4 > const &color_={ { 0, 0, 0, 0 } })
Definition: vulkan.hpp:17388

Member Function Documentation

◆ operator VkDebugUtilsLabelEXT &()

VULKAN_HPP_NAMESPACE::DebugUtilsLabelEXT::operator VkDebugUtilsLabelEXT & ( )
inline

Definition at line 17428 of file vulkan.hpp.

17429  {
17430  return *reinterpret_cast<VkDebugUtilsLabelEXT*>(this);
17431  }

◆ operator VkDebugUtilsLabelEXT const &()

VULKAN_HPP_NAMESPACE::DebugUtilsLabelEXT::operator VkDebugUtilsLabelEXT const & ( ) const
inline

Definition at line 17423 of file vulkan.hpp.

17424  {
17425  return *reinterpret_cast<const VkDebugUtilsLabelEXT*>(this);
17426  }

◆ operator!=()

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

Definition at line 17441 of file vulkan.hpp.

17442  {
17443  return !operator==( rhs );
17444  }
bool operator==(DebugUtilsLabelEXT const &rhs) const
Definition: vulkan.hpp:17433

◆ operator=()

DebugUtilsLabelEXT& VULKAN_HPP_NAMESPACE::DebugUtilsLabelEXT::operator= ( VkDebugUtilsLabelEXT const &  rhs)
inline

Definition at line 17400 of file vulkan.hpp.

References memcpy.

17401  {
17402  memcpy( this, &rhs, sizeof( DebugUtilsLabelEXT ) );
17403  return *this;
17404  }
#define memcpy
Definition: SDL_malloc.c:630
DebugUtilsLabelEXT(const char *pLabelName_=nullptr, std::array< float, 4 > const &color_={ { 0, 0, 0, 0 } })
Definition: vulkan.hpp:17388

◆ operator==()

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

Definition at line 17433 of file vulkan.hpp.

References color, pLabelName, pNext, and sType.

17434  {
17435  return ( sType == rhs.sType )
17436  && ( pNext == rhs.pNext )
17437  && ( pLabelName == rhs.pLabelName )
17438  && ( memcmp( color, rhs.color, 4 * sizeof( float ) ) == 0 );
17439  }
GLuint color

◆ setColor()

DebugUtilsLabelEXT& VULKAN_HPP_NAMESPACE::DebugUtilsLabelEXT::setColor ( std::array< float, 4 >  color_)
inline

Definition at line 17417 of file vulkan.hpp.

References memcpy.

17418  {
17419  memcpy( &color, color_.data(), 4 * sizeof( float ) );
17420  return *this;
17421  }
#define memcpy
Definition: SDL_malloc.c:630
GLuint color

◆ setPLabelName()

DebugUtilsLabelEXT& VULKAN_HPP_NAMESPACE::DebugUtilsLabelEXT::setPLabelName ( const char *  pLabelName_)
inline

Definition at line 17411 of file vulkan.hpp.

17412  {
17413  pLabelName = pLabelName_;
17414  return *this;
17415  }

◆ setPNext()

DebugUtilsLabelEXT& VULKAN_HPP_NAMESPACE::DebugUtilsLabelEXT::setPNext ( const void pNext_)
inline

Definition at line 17405 of file vulkan.hpp.

17406  {
17407  pNext = pNext_;
17408  return *this;
17409  }

Field Documentation

◆ color

float VULKAN_HPP_NAMESPACE::DebugUtilsLabelEXT::color[4]

Definition at line 17452 of file vulkan.hpp.

Referenced by operator==().

◆ pLabelName

const char* VULKAN_HPP_NAMESPACE::DebugUtilsLabelEXT::pLabelName

Definition at line 17451 of file vulkan.hpp.

Referenced by operator==().

◆ pNext

const void* VULKAN_HPP_NAMESPACE::DebugUtilsLabelEXT::pNext = nullptr

Definition at line 17450 of file vulkan.hpp.

Referenced by operator==().

◆ sType

StructureType VULKAN_HPP_NAMESPACE::DebugUtilsLabelEXT::sType = StructureType::eDebugUtilsLabelEXT
private

Definition at line 17447 of file vulkan.hpp.

Referenced by operator==().


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