mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-10 10:41:52 +00:00
Add #if VMA_DYNAMIC_VULKAN_FUNCTIONS == 1 around VmaAllocator_T::ImportVulkanFunctions_Dynamic
Refers to #56
This commit is contained in:
parent
d8bdd78e26
commit
b713c3435b
@ -7595,9 +7595,17 @@ private:
|
||||
#endif
|
||||
|
||||
void ImportVulkanFunctions(const VmaVulkanFunctions* pVulkanFunctions);
|
||||
|
||||
#if VMA_STATIC_VULKAN_FUNCTIONS == 1
|
||||
void ImportVulkanFunctions_Static();
|
||||
#endif
|
||||
|
||||
void ImportVulkanFunctions_Custom(const VmaVulkanFunctions* pVulkanFunctions);
|
||||
|
||||
#if VMA_DYNAMIC_VULKAN_FUNCTIONS == 1
|
||||
void ImportVulkanFunctions_Dynamic();
|
||||
#endif
|
||||
|
||||
void ValidateVulkanFunctions();
|
||||
|
||||
VkDeviceSize CalcPreferredBlockSize(uint32_t memTypeIndex);
|
||||
@ -15453,6 +15461,8 @@ void VmaAllocator_T::ImportVulkanFunctions_Custom(const VmaVulkanFunctions* pVul
|
||||
#undef VMA_COPY_IF_NOT_NULL
|
||||
}
|
||||
|
||||
#if VMA_DYNAMIC_VULKAN_FUNCTIONS == 1
|
||||
|
||||
void VmaAllocator_T::ImportVulkanFunctions_Dynamic()
|
||||
{
|
||||
#define VMA_FETCH_INSTANCE_FUNC(memberName, functionPointerType, functionNameString) \
|
||||
@ -15509,6 +15519,8 @@ void VmaAllocator_T::ImportVulkanFunctions_Dynamic()
|
||||
#undef VMA_FETCH_INSTANCE_FUNC
|
||||
}
|
||||
|
||||
#endif // #if VMA_DYNAMIC_VULKAN_FUNCTIONS == 1
|
||||
|
||||
void VmaAllocator_T::ValidateVulkanFunctions()
|
||||
{
|
||||
VMA_ASSERT(m_VulkanFunctions.vkGetPhysicalDeviceProperties != VMA_NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user