VulkanRenderer: Update headers and VMA
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -26,6 +26,7 @@ namespace Nz
|
||||
createInfo.size = size;
|
||||
createInfo.usage = bufferUsage;
|
||||
|
||||
//TODO: Update for VMA 3.0
|
||||
VmaAllocationCreateInfo allocInfo = {};
|
||||
if (usage & BufferUsage::DeviceLocal)
|
||||
{
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user