Fix descriptor buffer size discrapency
This commit is contained in:
@@ -314,7 +314,7 @@ namespace OpenVulkano::Vulkan
|
||||
uint32_t offset = Utils::Align(allocation->used, memoryRequirements.alignment);
|
||||
device.bindBufferMemory(buffer, allocation->memory, offset);
|
||||
allocation->used += memoryRequirements.size + (offset - allocation->used);
|
||||
return new ManagedBuffer{ allocation, offset, size, buffer, usage, properties, nullptr };
|
||||
return new ManagedBuffer{ allocation, offset, memoryRequirements.size, buffer, usage, properties, nullptr };
|
||||
}
|
||||
|
||||
MemoryAllocation* ResourceManager::CreateMemoryAllocation(size_t size, uint32_t type, bool addToCache)
|
||||
|
||||
Reference in New Issue
Block a user