Fixing struct initializer order
This commit is contained in:
1 parent
4868fb51ac
commit
c99451ad10
5 files changed
+11
-9
No files matched your search
@@ -58,16 +58,16 @@ void Graphics::init(GraphicsInitializer initInfo)
|
||||
pickPhysicalDevice();
|
||||
createDevice(initInfo);
|
||||
VmaAllocatorCreateInfo createInfo = {
|
||||
.physicalDevice = physicalDevice,
|
||||
.device = handle,
|
||||
.instance = instance,
|
||||
.preferredLargeHeapBlockSize = 0,
|
||||
.pAllocationCallbacks = nullptr,
|
||||
.pDeviceMemoryCallbacks = nullptr,
|
||||
.pHeapSizeLimit = nullptr,
|
||||
.physicalDevice = physicalDevice,
|
||||
.preferredLargeHeapBlockSize = 0,
|
||||
.pTypeExternalMemoryHandleTypes = nullptr,
|
||||
.pVulkanFunctions = nullptr,
|
||||
.instance = instance,
|
||||
.vulkanApiVersion = VK_API_VERSION_1_3,
|
||||
.pTypeExternalMemoryHandleTypes = nullptr,
|
||||
};
|
||||
vmaCreateAllocator(&createInfo, &allocator);
|
||||
pipelineCache = new PipelineCache(this, "pipeline.cache");
|
||||
|
||||
Reference in new issue
Block a user