Foundation
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Private Member Functions | List of all members
Foundation::RHI::VulkanAllocationCallbacks Struct Reference

#include <Common.hpp>

Public Member Functions

 VulkanAllocationCallbacks (Allocator *allocator=nullptr)
 
void Reset (Allocator *newAllocator)
 
vk::AllocationCallbacks constGet () const
 
VkAllocationCallbacks constGetNative () const
 

Public Attributes

Allocatorallocator {nullptr}
 
vk::AllocationCallbacks callbacks {}
 

Static Private Member Functions

static void *VKAPI_PTR Allocate (void *userData, size_t size, size_t alignment, vk::SystemAllocationScope)
 
static void *VKAPI_PTR Reallocate (void *userData, void *original, size_t size, size_t alignment, vk::SystemAllocationScope)
 
static void VKAPI_PTR Free (void *userData, void *memory)
 

Constructor & Destructor Documentation

◆ VulkanAllocationCallbacks()

Foundation::RHI::VulkanAllocationCallbacks::VulkanAllocationCallbacks ( Allocator allocator = nullptr)
inlineexplicit

Member Function Documentation

◆ Allocate()

static void *VKAPI_PTR Foundation::RHI::VulkanAllocationCallbacks::Allocate ( void userData,
size_t  size,
size_t  alignment,
vk::SystemAllocationScope   
)
inlinestaticprivate

◆ Free()

static void VKAPI_PTR Foundation::RHI::VulkanAllocationCallbacks::Free ( void userData,
void memory 
)
inlinestaticprivate

◆ Get()

vk::AllocationCallbacks const * Foundation::RHI::VulkanAllocationCallbacks::Get ( ) const
inline

◆ GetNative()

VkAllocationCallbacks const * Foundation::RHI::VulkanAllocationCallbacks::GetNative ( ) const
inline

◆ Reallocate()

static void *VKAPI_PTR Foundation::RHI::VulkanAllocationCallbacks::Reallocate ( void userData,
void original,
size_t  size,
size_t  alignment,
vk::SystemAllocationScope   
)
inlinestaticprivate

◆ Reset()

void Foundation::RHI::VulkanAllocationCallbacks::Reset ( Allocator newAllocator)
inline

Member Data Documentation

◆ allocator

Allocator* Foundation::RHI::VulkanAllocationCallbacks::allocator {nullptr}

◆ callbacks

vk::AllocationCallbacks Foundation::RHI::VulkanAllocationCallbacks::callbacks {}

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