SDL 2.0
VULKAN_HPP_NAMESPACE::AllocationCallbacks Struct Reference

#include <vulkan.hpp>

Public Member Functions

 AllocationCallbacks (void *pUserData_=nullptr, PFN_vkAllocationFunction pfnAllocation_=nullptr, PFN_vkReallocationFunction pfnReallocation_=nullptr, PFN_vkFreeFunction pfnFree_=nullptr, PFN_vkInternalAllocationNotification pfnInternalAllocation_=nullptr, PFN_vkInternalFreeNotification pfnInternalFree_=nullptr)
 
 AllocationCallbacks (VkAllocationCallbacks const &rhs)
 
AllocationCallbacksoperator= (VkAllocationCallbacks const &rhs)
 
AllocationCallbackssetPUserData (void *pUserData_)
 
AllocationCallbackssetPfnAllocation (PFN_vkAllocationFunction pfnAllocation_)
 
AllocationCallbackssetPfnReallocation (PFN_vkReallocationFunction pfnReallocation_)
 
AllocationCallbackssetPfnFree (PFN_vkFreeFunction pfnFree_)
 
AllocationCallbackssetPfnInternalAllocation (PFN_vkInternalAllocationNotification pfnInternalAllocation_)
 
AllocationCallbackssetPfnInternalFree (PFN_vkInternalFreeNotification pfnInternalFree_)
 
 operator VkAllocationCallbacks const & () const
 
 operator VkAllocationCallbacks & ()
 
bool operator== (AllocationCallbacks const &rhs) const
 
bool operator!= (AllocationCallbacks const &rhs) const
 

Data Fields

voidpUserData
 
PFN_vkAllocationFunction pfnAllocation
 
PFN_vkReallocationFunction pfnReallocation
 
PFN_vkFreeFunction pfnFree
 
PFN_vkInternalAllocationNotification pfnInternalAllocation
 
PFN_vkInternalFreeNotification pfnInternalFree
 

Detailed Description

Definition at line 5635 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ AllocationCallbacks() [1/2]

VULKAN_HPP_NAMESPACE::AllocationCallbacks::AllocationCallbacks ( void pUserData_ = nullptr,
PFN_vkAllocationFunction  pfnAllocation_ = nullptr,
PFN_vkReallocationFunction  pfnReallocation_ = nullptr,
PFN_vkFreeFunction  pfnFree_ = nullptr,
PFN_vkInternalAllocationNotification  pfnInternalAllocation_ = nullptr,
PFN_vkInternalFreeNotification  pfnInternalFree_ = nullptr 
)
inline

Definition at line 5637 of file vulkan.hpp.

5643 : pUserData( pUserData_ )
5644 , pfnAllocation( pfnAllocation_ )
5645 , pfnReallocation( pfnReallocation_ )
5646 , pfnFree( pfnFree_ )
5647 , pfnInternalAllocation( pfnInternalAllocation_ )
5648 , pfnInternalFree( pfnInternalFree_ )
5649 {
5650 }
PFN_vkReallocationFunction pfnReallocation
Definition: vulkan.hpp:5725
PFN_vkInternalFreeNotification pfnInternalFree
Definition: vulkan.hpp:5728
PFN_vkInternalAllocationNotification pfnInternalAllocation
Definition: vulkan.hpp:5727
PFN_vkAllocationFunction pfnAllocation
Definition: vulkan.hpp:5724

◆ AllocationCallbacks() [2/2]

VULKAN_HPP_NAMESPACE::AllocationCallbacks::AllocationCallbacks ( VkAllocationCallbacks const &  rhs)
inline

Definition at line 5652 of file vulkan.hpp.

5653 {
5654 memcpy( this, &rhs, sizeof( AllocationCallbacks ) );
5655 }
#define memcpy
Definition: SDL_malloc.c:630
AllocationCallbacks(void *pUserData_=nullptr, PFN_vkAllocationFunction pfnAllocation_=nullptr, PFN_vkReallocationFunction pfnReallocation_=nullptr, PFN_vkFreeFunction pfnFree_=nullptr, PFN_vkInternalAllocationNotification pfnInternalAllocation_=nullptr, PFN_vkInternalFreeNotification pfnInternalFree_=nullptr)
Definition: vulkan.hpp:5637

References memcpy.

Member Function Documentation

◆ operator VkAllocationCallbacks &()

VULKAN_HPP_NAMESPACE::AllocationCallbacks::operator VkAllocationCallbacks & ( )
inline

Definition at line 5703 of file vulkan.hpp.

5704 {
5705 return *reinterpret_cast<VkAllocationCallbacks*>(this);
5706 }

◆ operator VkAllocationCallbacks const &()

VULKAN_HPP_NAMESPACE::AllocationCallbacks::operator VkAllocationCallbacks const & ( ) const
inline

Definition at line 5698 of file vulkan.hpp.

5699 {
5700 return *reinterpret_cast<const VkAllocationCallbacks*>(this);
5701 }

◆ operator!=()

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

Definition at line 5718 of file vulkan.hpp.

5719 {
5720 return !operator==( rhs );
5721 }
bool operator==(AllocationCallbacks const &rhs) const
Definition: vulkan.hpp:5708

References operator==().

◆ operator=()

AllocationCallbacks & VULKAN_HPP_NAMESPACE::AllocationCallbacks::operator= ( VkAllocationCallbacks const &  rhs)
inline

Definition at line 5657 of file vulkan.hpp.

5658 {
5659 memcpy( this, &rhs, sizeof( AllocationCallbacks ) );
5660 return *this;
5661 }

References memcpy.

◆ operator==()

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

Definition at line 5708 of file vulkan.hpp.

5709 {
5710 return ( pUserData == rhs.pUserData )
5711 && ( pfnAllocation == rhs.pfnAllocation )
5712 && ( pfnReallocation == rhs.pfnReallocation )
5713 && ( pfnFree == rhs.pfnFree )
5714 && ( pfnInternalAllocation == rhs.pfnInternalAllocation )
5715 && ( pfnInternalFree == rhs.pfnInternalFree );
5716 }

References pfnAllocation, pfnFree, pfnInternalAllocation, pfnInternalFree, pfnReallocation, and pUserData.

Referenced by operator!=().

◆ setPfnAllocation()

AllocationCallbacks & VULKAN_HPP_NAMESPACE::AllocationCallbacks::setPfnAllocation ( PFN_vkAllocationFunction  pfnAllocation_)
inline

Definition at line 5668 of file vulkan.hpp.

5669 {
5670 pfnAllocation = pfnAllocation_;
5671 return *this;
5672 }

References pfnAllocation.

◆ setPfnFree()

AllocationCallbacks & VULKAN_HPP_NAMESPACE::AllocationCallbacks::setPfnFree ( PFN_vkFreeFunction  pfnFree_)
inline

Definition at line 5680 of file vulkan.hpp.

5681 {
5682 pfnFree = pfnFree_;
5683 return *this;
5684 }

References pfnFree.

◆ setPfnInternalAllocation()

AllocationCallbacks & VULKAN_HPP_NAMESPACE::AllocationCallbacks::setPfnInternalAllocation ( PFN_vkInternalAllocationNotification  pfnInternalAllocation_)
inline

Definition at line 5686 of file vulkan.hpp.

5687 {
5688 pfnInternalAllocation = pfnInternalAllocation_;
5689 return *this;
5690 }

References pfnInternalAllocation.

◆ setPfnInternalFree()

AllocationCallbacks & VULKAN_HPP_NAMESPACE::AllocationCallbacks::setPfnInternalFree ( PFN_vkInternalFreeNotification  pfnInternalFree_)
inline

Definition at line 5692 of file vulkan.hpp.

5693 {
5694 pfnInternalFree = pfnInternalFree_;
5695 return *this;
5696 }

References pfnInternalFree.

◆ setPfnReallocation()

AllocationCallbacks & VULKAN_HPP_NAMESPACE::AllocationCallbacks::setPfnReallocation ( PFN_vkReallocationFunction  pfnReallocation_)
inline

Definition at line 5674 of file vulkan.hpp.

5675 {
5676 pfnReallocation = pfnReallocation_;
5677 return *this;
5678 }

References pfnReallocation.

◆ setPUserData()

AllocationCallbacks & VULKAN_HPP_NAMESPACE::AllocationCallbacks::setPUserData ( void pUserData_)
inline

Definition at line 5662 of file vulkan.hpp.

5663 {
5664 pUserData = pUserData_;
5665 return *this;
5666 }

References pUserData.

Field Documentation

◆ pfnAllocation

PFN_vkAllocationFunction VULKAN_HPP_NAMESPACE::AllocationCallbacks::pfnAllocation

Definition at line 5724 of file vulkan.hpp.

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

◆ pfnFree

PFN_vkFreeFunction VULKAN_HPP_NAMESPACE::AllocationCallbacks::pfnFree

Definition at line 5726 of file vulkan.hpp.

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

◆ pfnInternalAllocation

PFN_vkInternalAllocationNotification VULKAN_HPP_NAMESPACE::AllocationCallbacks::pfnInternalAllocation

Definition at line 5727 of file vulkan.hpp.

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

◆ pfnInternalFree

PFN_vkInternalFreeNotification VULKAN_HPP_NAMESPACE::AllocationCallbacks::pfnInternalFree

Definition at line 5728 of file vulkan.hpp.

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

◆ pfnReallocation

PFN_vkReallocationFunction VULKAN_HPP_NAMESPACE::AllocationCallbacks::pfnReallocation

Definition at line 5725 of file vulkan.hpp.

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

◆ pUserData

void* VULKAN_HPP_NAMESPACE::AllocationCallbacks::pUserData

Definition at line 5723 of file vulkan.hpp.

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


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