VulkanRenderer: Update headers and VMA

This commit is contained in:
SirLynix
2022-08-10 00:24:13 +02:00
parent 880d6601a4
commit a108e6ce65
33 changed files with 20330 additions and 13755 deletions

View File

@@ -132,8 +132,8 @@ namespace Nz
std::string appName = "Another application made with Nazara Engine";
std::string engineName = "Nazara Engine - Vulkan Renderer";
UInt32 appVersion = VK_MAKE_VERSION(1, 0, 0);
UInt32 engineVersion = VK_MAKE_VERSION(1, 0, 0);
UInt32 appVersion = VK_MAKE_API_VERSION(0, 1, 0, 0);
UInt32 engineVersion = VK_MAKE_API_VERSION(0, 1, 0, 0);
parameters.GetStringParameter("VkAppInfo_OverrideApplicationName", &appName);
parameters.GetStringParameter("VkAppInfo_OverrideEngineName", &engineName);

View File

@@ -26,6 +26,7 @@ namespace Nz
createInfo.size = size;
createInfo.usage = bufferUsage;
//TODO: Update for VMA 3.0
VmaAllocationCreateInfo allocInfo = {};
if (usage & BufferUsage::DeviceLocal)
{

View File

@@ -184,6 +184,8 @@ namespace Nz
// Initialize VMA
VmaVulkanFunctions vulkanFunctions = {
Loader::vkGetInstanceProcAddr,
m_instance.vkGetDeviceProcAddr,
m_instance.vkGetPhysicalDeviceProperties,
m_instance.vkGetPhysicalDeviceMemoryProperties,
vkAllocateMemory,
@@ -211,6 +213,10 @@ namespace Nz
#endif
#if VMA_MEMORY_BUDGET || VMA_VULKAN_VERSION >= 1001000
m_instance.vkGetPhysicalDeviceMemoryProperties2,
#endif
#if VMA_VULKAN_VERSION >= 1003000
vkGetDeviceBufferMemoryRequirements,
vkGetDeviceImageMemoryRequirements,
#endif
};