Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
VMA.h File Reference
#include "lib/debug.h"
#include "lib/sysdep/os.h"
#include "ps/CLogger.h"
#include <glad/vulkan.h>
#include <mutex>
#include "third_party/vma/vk_mem_alloc.h"
Include dependency graph for VMA.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VMA_VULKAN_VERSION   1001000
 
#define VMA_ASSERT(EXPR)   ASSERT(EXPR)
 
#define VMA_HEAVY_ASSERT(EXPR)   ENSURE(EXPR)
 
#define VMA_DYNAMIC_VULKAN_FUNCTIONS   0
 
#define VMA_STATIC_VULKAN_FUNCTIONS   0
 
#define VMA_BUFFER_DEVICE_ADDRESS   0
 
#define VMA_DEBUG_LOG(...)   do { debug_printf(__VA_ARGS__); debug_printf("\n"); } while (0)
 
#define VMA_STATS_STRING_ENABLED   1
 
#define PFN_vkBindBufferMemory2KHR   PFN_vkBindBufferMemory2
 
#define PFN_vkBindImageMemory2KHR   PFN_vkBindImageMemory2
 
#define PFN_vkGetBufferMemoryRequirements2KHR   PFN_vkGetBufferMemoryRequirements2
 
#define PFN_vkGetImageMemoryRequirements2KHR   PFN_vkGetImageMemoryRequirements2
 
#define PFN_vkGetPhysicalDeviceMemoryProperties2KHR   PFN_vkGetPhysicalDeviceMemoryProperties2
 
#define vkBindBufferMemory2KHR   vkBindBufferMemory2
 
#define vkBindImageMemory2KHR   vkBindImageMemory2
 
#define vkGetBufferMemoryRequirements2KHR   vkGetBufferMemoryRequirements2
 
#define vkGetImageMemoryRequirements2KHR   vkGetImageMemoryRequirements2
 
#define vkGetPhysicalDeviceMemoryProperties2KHR   vkGetPhysicalDeviceMemoryProperties2
 
#define VkBindBufferMemoryInfoKHR   VkBindBufferMemoryInfo
 
#define VkBindImageMemoryInfoKHR   VkBindImageMemoryInfo
 
#define VkBufferMemoryRequirementsInfo2KHR   VkBufferMemoryRequirementsInfo2
 
#define VkImageMemoryRequirementsInfo2KHR   VkImageMemoryRequirementsInfo2
 
#define VkMemoryDedicatedAllocateInfoKHR   VkMemoryDedicatedAllocateInfo
 
#define VkMemoryDedicatedRequirementsKHR   VkMemoryDedicatedRequirements
 
#define VkMemoryRequirements2KHR   VkMemoryRequirements2
 
#define VkPhysicalDeviceMemoryProperties2KHR   VkPhysicalDeviceMemoryProperties2
 
#define VK_STRUCTURE_TYPE_BIND_BUFFER_MEMORY_INFO_KHR   VK_STRUCTURE_TYPE_BIND_BUFFER_MEMORY_INFO
 
#define VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_INFO_KHR   VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_INFO
 
#define VK_STRUCTURE_TYPE_BUFFER_MEMORY_REQUIREMENTS_INFO_2_KHR   VK_STRUCTURE_TYPE_BUFFER_MEMORY_REQUIREMENTS_INFO_2
 
#define VK_STRUCTURE_TYPE_IMAGE_MEMORY_REQUIREMENTS_INFO_2_KHR   VK_STRUCTURE_TYPE_IMAGE_MEMORY_REQUIREMENTS_INFO_2
 
#define VK_STRUCTURE_TYPE_MEMORY_DEDICATED_ALLOCATE_INFO_KHR   VK_STRUCTURE_TYPE_MEMORY_DEDICATED_ALLOCATE_INFO
 
#define VK_STRUCTURE_TYPE_MEMORY_DEDICATED_REQUIREMENTS_KHR   VK_STRUCTURE_TYPE_MEMORY_DEDICATED_REQUIREMENTS
 
#define VK_STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2_KHR   VK_STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2
 
#define VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PROPERTIES_2_KHR   VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PROPERTIES_2
 
#define VK_AMD_device_coherent_memory   0
 
#define VK_KHR_bind_memory2   0
 
#define VK_KHR_get_memory_requirements2   0
 
#define VK_KHR_external_memory   0
 
#define VK_EXT_memory_budget   0
 
#define VK_EXT_memory_priority   0
 

Macro Definition Documentation

◆ PFN_vkBindBufferMemory2KHR

#define PFN_vkBindBufferMemory2KHR   PFN_vkBindBufferMemory2

◆ PFN_vkBindImageMemory2KHR

#define PFN_vkBindImageMemory2KHR   PFN_vkBindImageMemory2

◆ PFN_vkGetBufferMemoryRequirements2KHR

#define PFN_vkGetBufferMemoryRequirements2KHR   PFN_vkGetBufferMemoryRequirements2

◆ PFN_vkGetImageMemoryRequirements2KHR

#define PFN_vkGetImageMemoryRequirements2KHR   PFN_vkGetImageMemoryRequirements2

◆ PFN_vkGetPhysicalDeviceMemoryProperties2KHR

#define PFN_vkGetPhysicalDeviceMemoryProperties2KHR   PFN_vkGetPhysicalDeviceMemoryProperties2

◆ VK_AMD_device_coherent_memory

#define VK_AMD_device_coherent_memory   0

◆ VK_EXT_memory_budget

#define VK_EXT_memory_budget   0

◆ VK_EXT_memory_priority

#define VK_EXT_memory_priority   0

◆ VK_KHR_bind_memory2

#define VK_KHR_bind_memory2   0

◆ VK_KHR_external_memory

#define VK_KHR_external_memory   0

◆ VK_KHR_get_memory_requirements2

#define VK_KHR_get_memory_requirements2   0

◆ VK_STRUCTURE_TYPE_BIND_BUFFER_MEMORY_INFO_KHR

#define VK_STRUCTURE_TYPE_BIND_BUFFER_MEMORY_INFO_KHR   VK_STRUCTURE_TYPE_BIND_BUFFER_MEMORY_INFO

◆ VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_INFO_KHR

#define VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_INFO_KHR   VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_INFO

◆ VK_STRUCTURE_TYPE_BUFFER_MEMORY_REQUIREMENTS_INFO_2_KHR

#define VK_STRUCTURE_TYPE_BUFFER_MEMORY_REQUIREMENTS_INFO_2_KHR   VK_STRUCTURE_TYPE_BUFFER_MEMORY_REQUIREMENTS_INFO_2

◆ VK_STRUCTURE_TYPE_IMAGE_MEMORY_REQUIREMENTS_INFO_2_KHR

#define VK_STRUCTURE_TYPE_IMAGE_MEMORY_REQUIREMENTS_INFO_2_KHR   VK_STRUCTURE_TYPE_IMAGE_MEMORY_REQUIREMENTS_INFO_2

◆ VK_STRUCTURE_TYPE_MEMORY_DEDICATED_ALLOCATE_INFO_KHR

#define VK_STRUCTURE_TYPE_MEMORY_DEDICATED_ALLOCATE_INFO_KHR   VK_STRUCTURE_TYPE_MEMORY_DEDICATED_ALLOCATE_INFO

◆ VK_STRUCTURE_TYPE_MEMORY_DEDICATED_REQUIREMENTS_KHR

#define VK_STRUCTURE_TYPE_MEMORY_DEDICATED_REQUIREMENTS_KHR   VK_STRUCTURE_TYPE_MEMORY_DEDICATED_REQUIREMENTS

◆ VK_STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2_KHR

#define VK_STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2_KHR   VK_STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2

◆ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PROPERTIES_2_KHR

#define VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PROPERTIES_2_KHR   VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PROPERTIES_2

◆ vkBindBufferMemory2KHR

#define vkBindBufferMemory2KHR   vkBindBufferMemory2

◆ VkBindBufferMemoryInfoKHR

#define VkBindBufferMemoryInfoKHR   VkBindBufferMemoryInfo

◆ vkBindImageMemory2KHR

#define vkBindImageMemory2KHR   vkBindImageMemory2

◆ VkBindImageMemoryInfoKHR

#define VkBindImageMemoryInfoKHR   VkBindImageMemoryInfo

◆ VkBufferMemoryRequirementsInfo2KHR

#define VkBufferMemoryRequirementsInfo2KHR   VkBufferMemoryRequirementsInfo2

◆ vkGetBufferMemoryRequirements2KHR

#define vkGetBufferMemoryRequirements2KHR   vkGetBufferMemoryRequirements2

◆ vkGetImageMemoryRequirements2KHR

#define vkGetImageMemoryRequirements2KHR   vkGetImageMemoryRequirements2

◆ vkGetPhysicalDeviceMemoryProperties2KHR

#define vkGetPhysicalDeviceMemoryProperties2KHR   vkGetPhysicalDeviceMemoryProperties2

◆ VkImageMemoryRequirementsInfo2KHR

#define VkImageMemoryRequirementsInfo2KHR   VkImageMemoryRequirementsInfo2

◆ VkMemoryDedicatedAllocateInfoKHR

#define VkMemoryDedicatedAllocateInfoKHR   VkMemoryDedicatedAllocateInfo

◆ VkMemoryDedicatedRequirementsKHR

#define VkMemoryDedicatedRequirementsKHR   VkMemoryDedicatedRequirements

◆ VkMemoryRequirements2KHR

#define VkMemoryRequirements2KHR   VkMemoryRequirements2

◆ VkPhysicalDeviceMemoryProperties2KHR

#define VkPhysicalDeviceMemoryProperties2KHR   VkPhysicalDeviceMemoryProperties2

◆ VMA_ASSERT

#define VMA_ASSERT (   EXPR)    ASSERT(EXPR)

◆ VMA_BUFFER_DEVICE_ADDRESS

#define VMA_BUFFER_DEVICE_ADDRESS   0

◆ VMA_DEBUG_LOG

#define VMA_DEBUG_LOG (   ...)    do { debug_printf(__VA_ARGS__); debug_printf("\n"); } while (0)

◆ VMA_DYNAMIC_VULKAN_FUNCTIONS

#define VMA_DYNAMIC_VULKAN_FUNCTIONS   0

◆ VMA_HEAVY_ASSERT

#define VMA_HEAVY_ASSERT (   EXPR)    ENSURE(EXPR)

◆ VMA_STATIC_VULKAN_FUNCTIONS

#define VMA_STATIC_VULKAN_FUNCTIONS   0

◆ VMA_STATS_STRING_ENABLED

#define VMA_STATS_STRING_ENABLED   1

◆ VMA_VULKAN_VERSION

#define VMA_VULKAN_VERSION   1001000