mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2025-05-15 01:08:31 +00:00
Merge pull request #145 from stricmp/master
Fix VMA_DYNAMIC_VULKAN_FUNCTIONS compilation errors when VK_NO_PROTOTYPES is defined
This commit is contained in:
commit
b9ad5e79db
1 changed files with 5 additions and 1 deletions
|
@ -1997,7 +1997,7 @@ available through VmaAllocatorCreateInfo::pRecordSettings.
|
|||
|
||||
// Define these macros to decorate all public functions with additional code,
|
||||
// before and after returned type, appropriately. This may be useful for
|
||||
// exporing the functions when compiling VMA as a separate library. Example:
|
||||
// exporting the functions when compiling VMA as a separate library. Example:
|
||||
// #define VMA_CALL_PRE __declspec(dllexport)
|
||||
// #define VMA_CALL_POST __cdecl
|
||||
#ifndef VMA_CALL_PRE
|
||||
|
@ -3881,6 +3881,10 @@ internally, like:
|
|||
*/
|
||||
#if !defined(VMA_DYNAMIC_VULKAN_FUNCTIONS)
|
||||
#define VMA_DYNAMIC_VULKAN_FUNCTIONS 1
|
||||
#if defined(VK_NO_PROTOTYPES)
|
||||
extern PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr;
|
||||
extern PFN_vkGetDeviceProcAddr vkGetDeviceProcAddr;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Define this macro to 1 to make the library use STL containers instead of its own implementation.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue