Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/renderer/backend/vulkan/Device.cpp
Show First 20 Lines • Show All 537 Lines • ▼ Show 20 Lines | #endif | ||||
vulkanFunctions.vkBindImageMemory = vkBindImageMemory; | vulkanFunctions.vkBindImageMemory = vkBindImageMemory; | ||||
vulkanFunctions.vkGetBufferMemoryRequirements = vkGetBufferMemoryRequirements; | vulkanFunctions.vkGetBufferMemoryRequirements = vkGetBufferMemoryRequirements; | ||||
vulkanFunctions.vkGetImageMemoryRequirements = vkGetImageMemoryRequirements; | vulkanFunctions.vkGetImageMemoryRequirements = vkGetImageMemoryRequirements; | ||||
vulkanFunctions.vkCreateBuffer = vkCreateBuffer; | vulkanFunctions.vkCreateBuffer = vkCreateBuffer; | ||||
vulkanFunctions.vkDestroyBuffer = vkDestroyBuffer; | vulkanFunctions.vkDestroyBuffer = vkDestroyBuffer; | ||||
vulkanFunctions.vkCreateImage = vkCreateImage; | vulkanFunctions.vkCreateImage = vkCreateImage; | ||||
vulkanFunctions.vkDestroyImage = vkDestroyImage; | vulkanFunctions.vkDestroyImage = vkDestroyImage; | ||||
vulkanFunctions.vkCmdCopyBuffer = vkCmdCopyBuffer; | vulkanFunctions.vkCmdCopyBuffer = vkCmdCopyBuffer; | ||||
// Functions promoted to Vulkan 1.1. | |||||
vulkanFunctions.vkGetBufferMemoryRequirements2KHR = vkGetBufferMemoryRequirements2; | |||||
vulkanFunctions.vkGetImageMemoryRequirements2KHR = vkGetImageMemoryRequirements2; | |||||
vulkanFunctions.vkBindBufferMemory2KHR = vkBindBufferMemory2; | |||||
vulkanFunctions.vkBindImageMemory2KHR = vkBindImageMemory2; | |||||
vulkanFunctions.vkGetPhysicalDeviceMemoryProperties2KHR = vkGetPhysicalDeviceMemoryProperties2; | |||||
VmaAllocatorCreateInfo allocatorCreateInfo{}; | VmaAllocatorCreateInfo allocatorCreateInfo{}; | ||||
allocatorCreateInfo.instance = device->m_Instance; | allocatorCreateInfo.instance = device->m_Instance; | ||||
allocatorCreateInfo.physicalDevice = choosenDevice.device; | allocatorCreateInfo.physicalDevice = choosenDevice.device; | ||||
allocatorCreateInfo.device = device->m_Device; | allocatorCreateInfo.device = device->m_Device; | ||||
allocatorCreateInfo.vulkanApiVersion = applicationInfo.apiVersion; | allocatorCreateInfo.vulkanApiVersion = applicationInfo.apiVersion; | ||||
allocatorCreateInfo.pVulkanFunctions = &vulkanFunctions; | allocatorCreateInfo.pVulkanFunctions = &vulkanFunctions; | ||||
const VkResult createVMAAllocatorResult = | const VkResult createVMAAllocatorResult = | ||||
▲ Show 20 Lines • Show All 481 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator