Fix linux build
This commit is contained in:
@@ -217,12 +217,12 @@ namespace openVulkanoCpp
|
||||
uint32_t offset = allocation->used;
|
||||
device.bindBufferMemory(buffer, allocation->memory, offset);
|
||||
allocation->used += memoryRequirements.size;
|
||||
return new ManagedBuffer{ allocation, offset, size, buffer, usage, properties, device, nullptr };
|
||||
return new ManagedBuffer{ allocation, offset, size, buffer, usage, properties, nullptr };
|
||||
}
|
||||
|
||||
MemoryAllocation* CreateMemoryAllocation(size_t size, uint32_t type, bool addToCache = true)
|
||||
{
|
||||
MemoryAllocation* alloc = new MemoryAllocation(size, type);
|
||||
MemoryAllocation* alloc = new MemoryAllocation(size, type, device);
|
||||
const vk::MemoryAllocateInfo allocInfo = { size, type };
|
||||
alloc->memory = device.allocateMemory(allocInfo);
|
||||
if (addToCache) allocations.push_back(alloc);
|
||||
|
||||
Reference in New Issue
Block a user