SDL  2.0
VULKAN_HPP_NAMESPACE::MemoryAllocateInfo Struct Reference

#include <vulkan.hpp>

Public Member Functions

VULKAN_HPP_CONSTEXPR MemoryAllocateInfo (VULKAN_HPP_NAMESPACE::DeviceSize allocationSize_={}, uint32_t memoryTypeIndex_={}) VULKAN_HPP_NOEXCEPT
 
VULKAN_HPP_CONSTEXPR MemoryAllocateInfo (MemoryAllocateInfo const &rhs) VULKAN_HPP_NOEXCEPT=default
 
 MemoryAllocateInfo (VkMemoryAllocateInfo const &rhs) VULKAN_HPP_NOEXCEPT
 
MemoryAllocateInfooperator= (VkMemoryAllocateInfo const &rhs) VULKAN_HPP_NOEXCEPT
 
MemoryAllocateInfooperator= (MemoryAllocateInfo const &rhs) VULKAN_HPP_NOEXCEPT
 
MemoryAllocateInfosetPNext (const void *pNext_) VULKAN_HPP_NOEXCEPT
 
MemoryAllocateInfosetAllocationSize (VULKAN_HPP_NAMESPACE::DeviceSize allocationSize_) VULKAN_HPP_NOEXCEPT
 
MemoryAllocateInfosetMemoryTypeIndex (uint32_t memoryTypeIndex_) VULKAN_HPP_NOEXCEPT
 
 operator VkMemoryAllocateInfo const & () const VULKAN_HPP_NOEXCEPT
 
 operator VkMemoryAllocateInfo & () VULKAN_HPP_NOEXCEPT
 
bool operator== (MemoryAllocateInfo const &rhs) const VULKAN_HPP_NOEXCEPT
 
bool operator!= (MemoryAllocateInfo const &rhs) const VULKAN_HPP_NOEXCEPT
 

Data Fields

const VULKAN_HPP_NAMESPACE::StructureType sType = StructureType::eMemoryAllocateInfo
 
const voidpNext = {}
 
VULKAN_HPP_NAMESPACE::DeviceSize allocationSize = {}
 
uint32_t memoryTypeIndex = {}
 

Static Public Attributes

static const bool allowDuplicate = false
 
static VULKAN_HPP_CONST_OR_CONSTEXPR StructureType structureType = StructureType::eMemoryAllocateInfo
 

Detailed Description

Definition at line 35799 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ MemoryAllocateInfo() [1/3]

VULKAN_HPP_CONSTEXPR VULKAN_HPP_NAMESPACE::MemoryAllocateInfo::MemoryAllocateInfo ( VULKAN_HPP_NAMESPACE::DeviceSize  allocationSize_ = {},
uint32_t  memoryTypeIndex_ = {} 
)
inline

Definition at line 35805 of file vulkan.hpp.

35805  {}, uint32_t memoryTypeIndex_ = {}) VULKAN_HPP_NOEXCEPT
35806  : allocationSize( allocationSize_ ), memoryTypeIndex( memoryTypeIndex_ )
35807  {}
unsigned int uint32_t
VULKAN_HPP_NAMESPACE::DeviceSize allocationSize
Definition: vulkan.hpp:35881
#define VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:179

◆ MemoryAllocateInfo() [2/3]

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

◆ MemoryAllocateInfo() [3/3]

VULKAN_HPP_NAMESPACE::MemoryAllocateInfo::MemoryAllocateInfo ( VkMemoryAllocateInfo const &  rhs)
inline

Definition at line 35811 of file vulkan.hpp.

35812  {
35813  *this = rhs;
35814  }

Member Function Documentation

◆ operator VkMemoryAllocateInfo &()

VULKAN_HPP_NAMESPACE::MemoryAllocateInfo::operator VkMemoryAllocateInfo & ( )
inline

Definition at line 35853 of file vulkan.hpp.

35854  {
35855  return *reinterpret_cast<VkMemoryAllocateInfo*>( this );
35856  }

◆ operator VkMemoryAllocateInfo const &()

VULKAN_HPP_NAMESPACE::MemoryAllocateInfo::operator VkMemoryAllocateInfo const & ( ) const
inline

Definition at line 35848 of file vulkan.hpp.

35849  {
35850  return *reinterpret_cast<const VkMemoryAllocateInfo*>( this );
35851  }

◆ operator!=()

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

Definition at line 35870 of file vulkan.hpp.

35871  {
35872  return !operator==( rhs );
35873  }
bool operator==(MemoryAllocateInfo const &rhs) const VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:35862

References VULKAN_HPP_NAMESPACE::operator==().

◆ operator=() [1/2]

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

Definition at line 35823 of file vulkan.hpp.

35824  {
35825  memcpy( static_cast<void *>( this ), &rhs, sizeof( MemoryAllocateInfo ) );
35826  return *this;
35827  }
#define memcpy
Definition: SDL_malloc.c:630
VULKAN_HPP_CONSTEXPR MemoryAllocateInfo(VULKAN_HPP_NAMESPACE::DeviceSize allocationSize_={}, uint32_t memoryTypeIndex_={}) VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:35805

References memcpy.

◆ operator=() [2/2]

MemoryAllocateInfo& VULKAN_HPP_NAMESPACE::MemoryAllocateInfo::operator= ( VkMemoryAllocateInfo const &  rhs)
inline

Definition at line 35817 of file vulkan.hpp.

35818  {
35819  *this = *reinterpret_cast<VULKAN_HPP_NAMESPACE::MemoryAllocateInfo const *>( &rhs );
35820  return *this;
35821  }

◆ operator==()

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

Definition at line 35862 of file vulkan.hpp.

35863  {
35864  return ( sType == rhs.sType )
35865  && ( pNext == rhs.pNext )
35866  && ( allocationSize == rhs.allocationSize )
35867  && ( memoryTypeIndex == rhs.memoryTypeIndex );
35868  }
const VULKAN_HPP_NAMESPACE::StructureType sType
Definition: vulkan.hpp:35879

◆ setAllocationSize()

MemoryAllocateInfo& VULKAN_HPP_NAMESPACE::MemoryAllocateInfo::setAllocationSize ( VULKAN_HPP_NAMESPACE::DeviceSize  allocationSize_)
inline

Definition at line 35835 of file vulkan.hpp.

35836  {
35837  allocationSize = allocationSize_;
35838  return *this;
35839  }

◆ setMemoryTypeIndex()

MemoryAllocateInfo& VULKAN_HPP_NAMESPACE::MemoryAllocateInfo::setMemoryTypeIndex ( uint32_t  memoryTypeIndex_)
inline

Definition at line 35841 of file vulkan.hpp.

35842  {
35843  memoryTypeIndex = memoryTypeIndex_;
35844  return *this;
35845  }

◆ setPNext()

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

Definition at line 35829 of file vulkan.hpp.

35830  {
35831  pNext = pNext_;
35832  return *this;
35833  }

Field Documentation

◆ allocationSize

VULKAN_HPP_NAMESPACE::DeviceSize VULKAN_HPP_NAMESPACE::MemoryAllocateInfo::allocationSize = {}

Definition at line 35881 of file vulkan.hpp.

◆ allowDuplicate

const bool VULKAN_HPP_NAMESPACE::MemoryAllocateInfo::allowDuplicate = false
static

Definition at line 35801 of file vulkan.hpp.

◆ memoryTypeIndex

uint32_t VULKAN_HPP_NAMESPACE::MemoryAllocateInfo::memoryTypeIndex = {}

Definition at line 35882 of file vulkan.hpp.

◆ pNext

const void* VULKAN_HPP_NAMESPACE::MemoryAllocateInfo::pNext = {}

Definition at line 35880 of file vulkan.hpp.

◆ structureType

VULKAN_HPP_CONST_OR_CONSTEXPR StructureType VULKAN_HPP_NAMESPACE::MemoryAllocateInfo::structureType = StructureType::eMemoryAllocateInfo
static

Definition at line 35802 of file vulkan.hpp.

◆ sType

const VULKAN_HPP_NAMESPACE::StructureType VULKAN_HPP_NAMESPACE::MemoryAllocateInfo::sType = StructureType::eMemoryAllocateInfo

Definition at line 35879 of file vulkan.hpp.


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