SDL  2.0
VULKAN_HPP_NAMESPACE::MemoryType Struct Reference

#include <vulkan.hpp>

+ Collaboration diagram for VULKAN_HPP_NAMESPACE::MemoryType:

Public Member Functions

VULKAN_HPP_CONSTEXPR MemoryType (VULKAN_HPP_NAMESPACE::MemoryPropertyFlags propertyFlags_={}, uint32_t heapIndex_={}) VULKAN_HPP_NOEXCEPT
 
VULKAN_HPP_CONSTEXPR MemoryType (MemoryType const &rhs) VULKAN_HPP_NOEXCEPT=default
 
 MemoryType (VkMemoryType const &rhs) VULKAN_HPP_NOEXCEPT
 
MemoryTypeoperator= (VkMemoryType const &rhs) VULKAN_HPP_NOEXCEPT
 
MemoryTypeoperator= (MemoryType const &rhs) VULKAN_HPP_NOEXCEPT
 
 operator VkMemoryType const & () const VULKAN_HPP_NOEXCEPT
 
 operator VkMemoryType & () VULKAN_HPP_NOEXCEPT
 
bool operator== (MemoryType const &rhs) const VULKAN_HPP_NOEXCEPT
 
bool operator!= (MemoryType const &rhs) const VULKAN_HPP_NOEXCEPT
 

Data Fields

VULKAN_HPP_NAMESPACE::MemoryPropertyFlags propertyFlags = {}
 
uint32_t heapIndex = {}
 

Detailed Description

Definition at line 52265 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ MemoryType() [1/3]

VULKAN_HPP_CONSTEXPR VULKAN_HPP_NAMESPACE::MemoryType::MemoryType ( VULKAN_HPP_NAMESPACE::MemoryPropertyFlags  propertyFlags_ = {},
uint32_t  heapIndex_ = {} 
)
inline

Definition at line 52270 of file vulkan.hpp.

52270  {}, uint32_t heapIndex_ = {}) VULKAN_HPP_NOEXCEPT
52271  : propertyFlags( propertyFlags_ ), heapIndex( heapIndex_ )
52272  {}
unsigned int uint32_t
VULKAN_HPP_NAMESPACE::MemoryPropertyFlags propertyFlags
Definition: vulkan.hpp:52324
#define VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:179

◆ MemoryType() [2/3]

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

◆ MemoryType() [3/3]

VULKAN_HPP_NAMESPACE::MemoryType::MemoryType ( VkMemoryType const &  rhs)
inline

Definition at line 52276 of file vulkan.hpp.

52277  {
52278  *this = rhs;
52279  }

Member Function Documentation

◆ operator VkMemoryType &()

VULKAN_HPP_NAMESPACE::MemoryType::operator VkMemoryType & ( )
inline

Definition at line 52300 of file vulkan.hpp.

52301  {
52302  return *reinterpret_cast<VkMemoryType*>( this );
52303  }

◆ operator VkMemoryType const &()

VULKAN_HPP_NAMESPACE::MemoryType::operator VkMemoryType const & ( ) const
inline

Definition at line 52295 of file vulkan.hpp.

52296  {
52297  return *reinterpret_cast<const VkMemoryType*>( this );
52298  }

◆ operator!=()

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

Definition at line 52315 of file vulkan.hpp.

52316  {
52317  return !operator==( rhs );
52318  }
bool operator==(MemoryType const &rhs) const VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:52309

References VULKAN_HPP_NAMESPACE::operator==().

◆ operator=() [1/2]

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

Definition at line 52288 of file vulkan.hpp.

52289  {
52290  memcpy( static_cast<void *>( this ), &rhs, sizeof( MemoryType ) );
52291  return *this;
52292  }
#define memcpy
Definition: SDL_malloc.c:630
VULKAN_HPP_CONSTEXPR MemoryType(VULKAN_HPP_NAMESPACE::MemoryPropertyFlags propertyFlags_={}, uint32_t heapIndex_={}) VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:52270

References memcpy.

◆ operator=() [2/2]

MemoryType& VULKAN_HPP_NAMESPACE::MemoryType::operator= ( VkMemoryType const &  rhs)
inline

Definition at line 52282 of file vulkan.hpp.

52283  {
52284  *this = *reinterpret_cast<VULKAN_HPP_NAMESPACE::MemoryType const *>( &rhs );
52285  return *this;
52286  }

◆ operator==()

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

Definition at line 52309 of file vulkan.hpp.

52310  {
52311  return ( propertyFlags == rhs.propertyFlags )
52312  && ( heapIndex == rhs.heapIndex );
52313  }

Field Documentation

◆ heapIndex

uint32_t VULKAN_HPP_NAMESPACE::MemoryType::heapIndex = {}

Definition at line 52325 of file vulkan.hpp.

◆ propertyFlags

VULKAN_HPP_NAMESPACE::MemoryPropertyFlags VULKAN_HPP_NAMESPACE::MemoryType::propertyFlags = {}

Definition at line 52324 of file vulkan.hpp.


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