Initial commit
This commit is contained in:
20
vulkan-memory-allocator/all/test_package/test_package.cpp
Normal file
20
vulkan-memory-allocator/all/test_package/test_package.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#define VMA_STATIC_VULKAN_FUNCTIONS 0
|
||||
#define VMA_IMPLEMENTATION
|
||||
#include <vk_mem_alloc.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
// Load function pointers...
|
||||
// vmaVmaVulkanFunctions vulkanFunctions{};
|
||||
// vulkavulkanFunctions.vkAllocateMemory = ... ;
|
||||
// ...
|
||||
|
||||
VmaAllocatorCreateInfo allocatorInfo{}; (void)allocatorInfo;
|
||||
// allocatorInfo.instance = instance;
|
||||
// allocatorInfo.physicalDevice = physicalDevice;
|
||||
// allocatorInfo.device = device;
|
||||
// allocatorInfo.pVulkanFunctions = &vulkanFunctions;
|
||||
|
||||
VmaAllocator allocator; (void)allocator;
|
||||
// vmaCreateAllocator(&allocatorInfo, &allocator);
|
||||
}
|
||||
Reference in New Issue
Block a user