SDL 2.0
VULKAN_HPP_NAMESPACE::MemoryAllocateInfo Struct Reference

#include <vulkan.hpp>

Public Member Functions

 MemoryAllocateInfo (DeviceSize allocationSize_=0, uint32_t memoryTypeIndex_=0)
 
 MemoryAllocateInfo (VkMemoryAllocateInfo const &rhs)
 
MemoryAllocateInfooperator= (VkMemoryAllocateInfo const &rhs)
 
MemoryAllocateInfosetPNext (const void *pNext_)
 
MemoryAllocateInfosetAllocationSize (DeviceSize allocationSize_)
 
MemoryAllocateInfosetMemoryTypeIndex (uint32_t memoryTypeIndex_)
 
 operator VkMemoryAllocateInfo const & () const
 
 operator VkMemoryAllocateInfo & ()
 
bool operator== (MemoryAllocateInfo const &rhs) const
 
bool operator!= (MemoryAllocateInfo const &rhs) const
 

Data Fields

const voidpNext = nullptr
 
DeviceSize allocationSize
 
uint32_t memoryTypeIndex
 

Private Attributes

StructureType sType = StructureType::eMemoryAllocateInfo
 

Detailed Description

Definition at line 9710 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ MemoryAllocateInfo() [1/2]

VULKAN_HPP_NAMESPACE::MemoryAllocateInfo::MemoryAllocateInfo ( DeviceSize  allocationSize_ = 0,
uint32_t  memoryTypeIndex_ = 0 
)
inline

Definition at line 9712 of file vulkan.hpp.

9714 : allocationSize( allocationSize_ )
9715 , memoryTypeIndex( memoryTypeIndex_ )
9716 {
9717 }

◆ MemoryAllocateInfo() [2/2]

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

Definition at line 9719 of file vulkan.hpp.

9720 {
9721 memcpy( this, &rhs, sizeof( MemoryAllocateInfo ) );
9722 }
#define memcpy
Definition: SDL_malloc.c:630
MemoryAllocateInfo(DeviceSize allocationSize_=0, uint32_t memoryTypeIndex_=0)
Definition: vulkan.hpp:9712

References memcpy.

Member Function Documentation

◆ operator VkMemoryAllocateInfo &()

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

Definition at line 9752 of file vulkan.hpp.

9753 {
9754 return *reinterpret_cast<VkMemoryAllocateInfo*>(this);
9755 }

◆ operator VkMemoryAllocateInfo const &()

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

Definition at line 9747 of file vulkan.hpp.

9748 {
9749 return *reinterpret_cast<const VkMemoryAllocateInfo*>(this);
9750 }

◆ operator!=()

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

Definition at line 9765 of file vulkan.hpp.

9766 {
9767 return !operator==( rhs );
9768 }
bool operator==(MemoryAllocateInfo const &rhs) const
Definition: vulkan.hpp:9757

References operator==().

◆ operator=()

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

Definition at line 9724 of file vulkan.hpp.

9725 {
9726 memcpy( this, &rhs, sizeof( MemoryAllocateInfo ) );
9727 return *this;
9728 }

References memcpy.

◆ operator==()

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

Definition at line 9757 of file vulkan.hpp.

9758 {
9759 return ( sType == rhs.sType )
9760 && ( pNext == rhs.pNext )
9761 && ( allocationSize == rhs.allocationSize )
9762 && ( memoryTypeIndex == rhs.memoryTypeIndex );
9763 }

References allocationSize, memoryTypeIndex, pNext, and sType.

Referenced by operator!=().

◆ setAllocationSize()

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

Definition at line 9735 of file vulkan.hpp.

9736 {
9737 allocationSize = allocationSize_;
9738 return *this;
9739 }

References allocationSize.

◆ setMemoryTypeIndex()

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

Definition at line 9741 of file vulkan.hpp.

9742 {
9743 memoryTypeIndex = memoryTypeIndex_;
9744 return *this;
9745 }

References memoryTypeIndex.

◆ setPNext()

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

Definition at line 9729 of file vulkan.hpp.

9730 {
9731 pNext = pNext_;
9732 return *this;
9733 }

References pNext.

Field Documentation

◆ allocationSize

DeviceSize VULKAN_HPP_NAMESPACE::MemoryAllocateInfo::allocationSize

Definition at line 9775 of file vulkan.hpp.

Referenced by operator==(), and setAllocationSize().

◆ memoryTypeIndex

uint32_t VULKAN_HPP_NAMESPACE::MemoryAllocateInfo::memoryTypeIndex

Definition at line 9776 of file vulkan.hpp.

Referenced by operator==(), and setMemoryTypeIndex().

◆ pNext

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

Definition at line 9774 of file vulkan.hpp.

Referenced by operator==(), and setPNext().

◆ sType

StructureType VULKAN_HPP_NAMESPACE::MemoryAllocateInfo::sType = StructureType::eMemoryAllocateInfo
private

Definition at line 9771 of file vulkan.hpp.

Referenced by operator==().


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